Answer the question
In order to leave comments, you need to log in
Do I understand correctly the difference between Sentry and loggers like log4js?
If I understand correctly, Sentry is a bug log aggregator and cannot replace a logger like log4js. That is, Sentry works on top of the logging system and (again, if I understand the architecture of their interaction correctly) must be controlled by the logger.
For example, when you need to report some incident in the application, I write something like:
if (incident) {
logger.add('Incident type', 'Incident description')
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question