R
R
romaro2021-07-09 01:26:42
JavaScript
romaro, 2021-07-09 01:26:42

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')
}


In turn, the logger can be configured in such a way that when an event with a certain Incident type occurs, information about it would be transferred to Sentry.

I'm right?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question