docs/html/classLog.html
| | Jetson Inference
DNN Vision Library |
Public Types | Static Public Member Functions | Static Protected Attributes | List of all members
Log Class Reference Utilities Library (jetson-utils) » Logging
Message logging with a variable level of output and destinations. More...
#include <logging.h>
|
|
| enum | Level {
SILENT =0, ERROR, WARNING, SUCCESS,
INFO, VERBOSE, DEBUG, DEFAULT =VERBOSE
} |
| | Defines the logging level of a message, and the threshold used by the logger to either drop or output messages. More...
|
| |
|
|
| static Level | GetLevel () |
| | Get the current logging level. More...
|
| |
| static void | SetLevel (Level level) |
| | Set the current logging level. More...
|
| |
| static FILE * | GetFile () |
| | Get the current log output. More...
|
| |
| static const char * | GetFilename () |
| | Get the filename of the log output. More...
|
| |
| static void | SetFile (FILE *file) |
| | Set the logging output. More...
|
| |
| static void | SetFile (const char *filename) |
| | Set the logging output. More...
|
| |
| static const char * | Usage () |
| | Usage string for command line arguments to Create() More...
|
| |
| static void | ParseCmdLine (const int argc, char **argv) |
| | Parse command line options (see Usage() above) More...
|
| |
| static void | ParseCmdLine (const commandLine &cmdLine) |
| | Parse command line options (see Usage() above) More...
|
| |
| static const char * | LevelToStr (Level level) |
| | Convert a logging level to string. More...
|
| |
| static Level | LevelFromStr (const char *str) |
| | Parse a logging level from a string. More...
|
| |
|
| | static Level | mLevel | | | | static FILE * | mFile | | | | static std::string | mFilename | | |
Message logging with a variable level of output and destinations.
| enum Log::Level |
Defines the logging level of a message, and the threshold used by the logger to either drop or output messages.
| Enumerator |
|---|
| SILENT |
No messages are output.
| | ERROR |
Major errors that may impact application execution.
| | WARNING |
Warning conditions where the application may be able to proceed in some capacity.
| | SUCCESS |
Successful events (e.g.
the loading or creation of a resource)
| | INFO |
Informational messages that are more important than VERBOSE messages.
| | VERBOSE |
Verbose details about program execution.
| | DEBUG |
Low-level debugging (disabled by default)
| | DEFAULT |
The default level is VERBOSE
|
|
| static FILE* Log::GetFile | ( | | ) | |
| inlinestatic |
Get the current log output.
|
| static const char* Log::GetFilename | ( | | ) | |
| inlinestatic |
Get the filename of the log output.
This may also return "stdout" or "stderror".
|
| static Level Log::GetLevel | ( | | ) | |
| inlinestatic |
Get the current logging level.
|
| static Level Log::LevelFromStr | ( | const char * | str | ) | |
| static |
Parse a logging level from a string.
|
| static const char* Log::LevelToStr | ( | Level | level | ) | |
| static |
Convert a logging level to string.
|
| static void Log::ParseCmdLine | ( | const commandLine & | cmdLine | ) | |
| static |
Parse command line options (see Usage() above)
|
| static void Log::ParseCmdLine | ( | const int | argc, | | | | char ** | argv | | | ) | | |
| static |
Parse command line options (see Usage() above)
|
| static void Log::SetFile | ( | const char * | filename | ) | |
| static |
Set the logging output.
Can be "stdout", "stderr", "log.txt", ect.
|
| static void Log::SetFile | ( | FILE * | file | ) | |
| static |
Set the logging output.
This can be a built-in file, like stdout or stderr, or a file that has been opened by the user.
|
| static void Log::SetLevel | ( | Level | level | ) | |
| inlinestatic |
Set the current logging level.
|
| static const char* Log::Usage | ( | | ) | |
| inlinestatic |
Usage string for command line arguments to Create()
|
| FILE* Log::mFile |
| staticprotected |
|
| std::string Log::mFilename |
| staticprotected |
|
| Level Log::mLevel |
| staticprotected |
The documentation for this class was generated from the following file: