Definition at line 57 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
Public Member Functions | |
| PrettyLogger (LogLevel level=LogLevel::ERROR) | |
| void | setLogLevel (const std::string &level_str) |
| Set the logging level. More... | |
| void | setLogLevel (LogLevel level) |
| Set the logging level using enum. More... | |
| void | reset () |
| void | warning (const std::string &message) |
| Display a warning message. More... | |
| void | error (const std::string &message) |
| Display an error message. More... | |
| void | info (const std::string &message) |
| Display an informational message. More... | |
| void | persistent_info (const std::string &message) |
| Prints a persistent information message that is always displayed. More... | |
| void | processStart (const std::string &process, int frameNum, bool isMainProcess=false, const std::string &additionalInfo="") |
| Mark the start of a process for timing and logging. More... | |
| void | processComplete (const std::string &process, int frameNum, bool success=true, bool isMainProcess=false, const std::string &additionalInfo="") |
| Mark the completion of a process and display timing information. More... | |
| PrettyLogger (LogLevel level=LogLevel::ERROR) | |
| void | setLogLevel (const std::string &level_str) |
| Set the logging level. More... | |
| void | setLogLevel (LogLevel level) |
| Set the logging level using enum. More... | |
| void | reset () |
| void | warning (const std::string &message) |
| Display a warning message. More... | |
| void | error (const std::string &message) |
| Display an error message. More... | |
| void | info (const std::string &message) |
| Display an informational message. More... | |
| void | persistent_info (const std::string &message) |
| Prints a persistent information message that is always displayed. More... | |
| void | processStart (const std::string &process, int frameNum, bool isMainProcess=false, const std::string &additionalInfo="") |
| Mark the start of a process for timing and logging. More... | |
| void | processComplete (const std::string &process, int frameNum, bool success=true, bool isMainProcess=false, const std::string &additionalInfo="") |
| Mark the completion of a process and display timing information. More... | |
|
inline |
Definition at line 254 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Definition at line 254 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Display an error message.
Errors are always displayed regardless of log level.
| [in] | message | The error message to display |
Definition at line 323 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_ERROR, ANSI_COLOR_RESET, and INFO.
|
inline |
Display an error message.
Errors are always displayed regardless of log level.
| [in] | message | The error message to display |
Definition at line 323 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_ERROR, ANSI_COLOR_RESET, and INFO.
|
inline |
Display an informational message.
Info messages are displayed only when log level is INFO.
| [in] | message | The informational message to display |
Definition at line 346 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_INFO2, ANSI_COLOR_RESET, and INFO.
Referenced by persistent_info().
|
inline |
Display an informational message.
Info messages are displayed only when log level is INFO.
| [in] | message | The informational message to display |
Definition at line 346 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_INFO2, ANSI_COLOR_RESET, and INFO.
|
inline |
Prints a persistent information message that is always displayed.
This function provides critical messages that should always be visible regardless of the logger's log level. When log level is INFO, it uses proper formatting. Otherwise, it prints directly without formatting.
| [in] | message | The message to be displayed |
Definition at line 383 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Prints a persistent information message that is always displayed.
This function provides critical messages that should always be visible regardless of the logger's log level. When log level is INFO, it uses proper formatting. Otherwise, it prints directly without formatting.
| [in] | message | The message to be displayed |
Definition at line 383 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Mark the completion of a process and display timing information.
Process completion is displayed only when log level is INFO.
| [in] | process | The name of the process |
| [in] | frameNum | The frame number |
| [in] | success | Whether the process completed successfully |
| [in] | isMainProcess | Whether this is the main process |
| [in] | additionalInfo | Optional additional information to display |
Definition at line 510 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_ERROR, ANSI_COLOR_INFO2, ANSI_COLOR_RESET, ANSI_COLOR_SUCCESS, and INFO.
|
inline |
Mark the completion of a process and display timing information.
Process completion is displayed only when log level is INFO.
| [in] | process | The name of the process |
| [in] | frameNum | The frame number |
| [in] | success | Whether the process completed successfully |
| [in] | isMainProcess | Whether this is the main process |
| [in] | additionalInfo | Optional additional information to display |
Definition at line 510 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_ERROR, ANSI_COLOR_INFO2, ANSI_COLOR_RESET, ANSI_COLOR_SUCCESS, and INFO.
|
inline |
Mark the start of a process for timing and logging.
Process timing is displayed only when log level is INFO.
| [in] | process | The name of the process |
| [in] | frameNum | The frame number (-1 for non-frame-specific processes) |
| [in] | isMainProcess | Whether this is the main process |
| [in] | additionalInfo | Optional additional information to display |
Definition at line 404 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_INFO2, ANSI_COLOR_RESET, and INFO.
|
inline |
Mark the start of a process for timing and logging.
Process timing is displayed only when log level is INFO.
| [in] | process | The name of the process |
| [in] | frameNum | The frame number (-1 for non-frame-specific processes) |
| [in] | isMainProcess | Whether this is the main process |
| [in] | additionalInfo | Optional additional information to display |
Definition at line 404 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_INFO2, ANSI_COLOR_RESET, and INFO.
|
inline |
Definition at line 280 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Definition at line 280 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Set the logging level.
| [in] | level_str | String representation of log level (info, warn, error) |
Definition at line 267 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Set the logging level.
| [in] | level_str | String representation of log level (info, warn, error) |
Definition at line 267 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Set the logging level using enum.
| [in] | level | LogLevel enum value |
Definition at line 276 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Set the logging level using enum.
| [in] | level | LogLevel enum value |
Definition at line 276 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
|
inline |
Display a warning message.
Warnings are displayed when log level is WARN or INFO.
| [in] | message | The warning message to display |
Definition at line 296 of file 9.2/sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_RESET, ANSI_COLOR_WARNING, ERROR, and INFO.
|
inline |
Display a warning message.
Warnings are displayed when log level is WARN or INFO.
| [in] | message | The warning message to display |
Definition at line 296 of file sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h.
References ANSI_COLOR_RESET, ANSI_COLOR_WARNING, ERROR, and INFO.