![]() |
|
|
#include <agentutils.h>
Definition at line 63 of file agentutils.h.
Static Public Member Functions | |
static void | print (const char *format,...) |
Send message to stdout or whatever the data output location is. | |
static void | println (const char *format,...) |
Send message to stdout followed by a newline. | |
static void | debug (const char *format,...) |
Send message to stdout or whatever the data output location is Use for debug logging. | |
static void | info (const char *format,...) |
Send message to stdout or whatever the data output location is Use for informational logging. | |
static void | warn (const char *format,...) |
Send message to stdout or whatever the data output location is. | |
static void | error (const char *format,...) |
Send message to stderr or whatever the error output location is. | |
static void | fatal (const char *format,...) |
Send message to stderr and exit. | |
static char * | toChar (const QString &qstr) |
convert QString to char* | |
static void | print (const QString qstr,...) |
static void | println (const QString qstr,...) |
static void | debug (const QString qstr,...) |
static void | info (const QString qstr,...) |
static void | warn (const QString qstr,...) |
static void | error (const QString qstr,...) |
static void | fatal (const QString qstr,...) |
Static Public Attributes | |
static int | loglevel |
Static Private Member Functions | |
static void | printTimeString (FILE *stream) |
Print a 'time' string with the following format: Y-m-d I:M:S -. |
static void inspectorj::agent::AgentLogger::print | ( | const char * | format, | |
... | ||||
) | [inline, static] |
Send message to stdout or whatever the data output location is.
No timestamp will be prepended. No newline will be appended. Use for messages to the user (i.e. help)
Definition at line 75 of file agentutils.h.
Referenced by print().
static void inspectorj::agent::AgentLogger::println | ( | const char * | format, | |
... | ||||
) | [inline, static] |
Send message to stdout followed by a newline.
No timestamp will be prepended. Use for messages to the user (i.e. help)
Definition at line 91 of file agentutils.h.
Referenced by println().
static void inspectorj::agent::AgentLogger::debug | ( | const char * | format, | |
... | ||||
) | [inline, static] |
Send message to stdout or whatever the data output location is Use for debug logging.
Definition at line 107 of file agentutils.h.
References loglevel, and printTimeString().
Referenced by debug().
static void inspectorj::agent::AgentLogger::info | ( | const char * | format, | |
... | ||||
) | [inline, static] |
Send message to stdout or whatever the data output location is Use for informational logging.
Definition at line 127 of file agentutils.h.
References loglevel, and printTimeString().
Referenced by info(), and inspectorj::agent::AgentServer::start().
static void inspectorj::agent::AgentLogger::warn | ( | const char * | format, | |
... | ||||
) | [inline, static] |
Send message to stdout or whatever the data output location is.
Definition at line 144 of file agentutils.h.
References loglevel, and printTimeString().
Referenced by inspectorj::agent::AgentServer::start(), and warn().
static void inspectorj::agent::AgentLogger::error | ( | const char * | format, | |
... | ||||
) | [inline, static] |
Send message to stderr or whatever the error output location is.
Definition at line 162 of file agentutils.h.
References printTimeString().
Referenced by check_jvmti_error(), error(), and inspectorj::agent::AgentServer::start().
static void inspectorj::agent::AgentLogger::fatal | ( | const char * | format, | |
... | ||||
) | [inline, static] |
Send message to stderr and exit.
Definition at line 179 of file agentutils.h.
References printTimeString().
Referenced by fatal().
static char* inspectorj::agent::AgentLogger::toChar | ( | const QString & | qstr | ) | [inline, static] |
static void inspectorj::agent::AgentLogger::printTimeString | ( | FILE * | stream | ) | [inline, static, private] |