|
AVPKit
|
Internal Only. More...
#include <Logger.h>
Public Types | |
| enum | Level { LEVEL_ERROR =0 , LEVEL_WARN =1 , LEVEL_INFO =2 , LEVEL_DEBUG =3 , LEVEL_TRACE =4 } |
| Different logging levels (noiseness) supported by us. | |
| typedef enum com::avpkit::ferry::Logger::Level | Level |
| Different logging levels (noiseness) supported by us. | |
Public Member Functions | |
| bool | log (const char *filename, int lineNo, Level level, const char *format,...) |
| Log the message to the logger, using sprintf() format strings. More... | |
| bool | logVA (const char *filename, int lineNo, Level level, const char *format, va_list ap) |
| bool | error (const char *filename, int lineNo, const char *format,...) |
| bool | warn (const char *filename, int lineNo, const char *format,...) |
| bool | info (const char *filename, int lineNo, const char *format,...) |
| bool | debug (const char *filename, int lineNo, const char *format,...) |
| bool | trace (const char *filename, int lineNo, const char *format,...) |
| bool | isLogging (Level level) |
| void | setIsLogging (Level level, bool value) |
| const char * | getName () |
Static Public Member Functions | |
| static Logger * | getLogger (const char *aLoggerName) |
| Returns a new Logger object for this loggerName. More... | |
| static Logger * | getStaticLogger (const char *aLoggerName) |
| Get a Logger object, but ask the Logger code to free it up once the JavaVM shuts down. More... | |
| static bool | isGlobalLogging (Level level) |
| static void | setGlobalIsLogging (Level level, bool value) |
Protected Member Functions | |
| Logger (const char *loggerName, jobject aJavaLogger) | |
Internal Only.
C++ wrapper to SLF4J Java Logging frame work.
If not running inside a JVM, then this class just does a rudimentary printout of log messages to stderr.
Otherwise, it forwards to Java's SLF4J logging framework.
|
static |
Returns a new Logger object for this loggerName.
| aLoggerName | A name (no spaces allowed) for this logger. |
Definition at line 143 of file Logger.cpp.
Referenced by getStaticLogger().
|
static |
Get a Logger object, but ask the Logger code to free it up once the JavaVM shuts down.
Use at your own risk.
| aLoggerName | A name (no spaces allowed) for this logger. |
Definition at line 177 of file Logger.cpp.
References getLogger().
| bool com::avpkit::ferry::Logger::log | ( | const char * | filename, |
| int | lineNo, | ||
| Level | level, | ||
| const char * | format, | ||
| ... | |||
| ) |
Log the message to the logger, using sprintf() format strings.
| filename | The filename that is logging, or NULL. |
| lineNo | The line number where this log statement is executed from. or 0. |
| level | Level to log at. |
| format | A format specification string, in sprintf format. |
Definition at line 324 of file Logger.cpp.