server_utils v0.3.0 ServerUtils.SentryLogger
Logger wrapper that handles warn
and error
logging and sends a Sentry report. Both logging and Sentry calls will be executed asynchronously.
Sentry will need to be configured in the project that uses this dependency.
The integration with Sentry can be disabled by setting the system variable DISABLE_SENTRY as true.
Link to this section Summary
Link to this section Functions
Logs a debug message.
Returns :ok
or an {:error, reason}
tuple.
Logs a error message.
Unless the system variable DISABLE_SENTRY
is set, it will send the logged message as error level to Sentry.
Returns :ok
or an {:error, reason}
tuple if Sentry is disabled.
Returns a Task struct if Sentry is enabled.
Logs a info message.
Returns :ok
or an {:error, reason}
tuple.
Logs a warn message.
Unless the system variable DISABLE_SENTRY
is set, it will send the logged message as warning level to Sentry.
Returns :ok
or an {:error, reason}
tuple.
Returns a Task struct if Sentry is enabled.