|
Greenbone Vulnerability Management Libraries 22.32.0
|
Implementation of sentry methods. More...

Go to the source code of this file.
Functions | |
| void | gvm_sentry_init (const char *, const char *) |
| Initialize Sentry. | |
| void | gvm_sentry_log (const char *) |
| Send a message to Sentry server if it was initialized. | |
| void | gvm_close_sentry (void) |
| Shutdown Sentry if it was initialized. | |
| int | gvm_has_sentry_support (void) |
| Check for sentry support. | |
Implementation of sentry methods.
This file contains all methods needed for sentry. To enable sentry and log log in the sentry server, methods in this file are called.
Definition in file gvm_sentry.h.
| void gvm_close_sentry | ( | void | ) |
Shutdown Sentry if it was initialized.
This function must be called before exiting to ensure that all message has been sent to Sentry.
The function does nothing if HAVE_SENTRY is not defined
Definition at line 122 of file gvm_sentry.c.
| int gvm_has_sentry_support | ( | void | ) |
Check for sentry support.
Definition at line 26 of file gvm_sentry.c.
| void gvm_sentry_init | ( | const char * | dsn, |
| const char * | release ) |
Initialize Sentry.
The function does nothing if HAVE_SENTRY is not defined
| [in] | dsn | Sentry DSN |
| [in] | release | Module release to be sent to Sentry. |
Definition at line 74 of file gvm_sentry.c.
| void gvm_sentry_log | ( | const char * | message | ) |
Send a message to Sentry server if it was initialized.
The function does nothing if HAVE_SENTRY is not defined
| [in] | message | Message to send |
Definition at line 97 of file gvm_sentry.c.
Referenced by gvm_log_func().
