ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



inspectorj::agent::AgentLogger Class Reference

#include <agentutils.h>

List of all members.


Detailed Description

AgentLogger is a simple logger class for logging to stdout / stderr.

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 -.


Member Function Documentation

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]

convert QString to char*

Definition at line 197 of file agentutils.h.

Referenced by debug(), error(), fatal(), info(), print(), println(), and warn().

static void inspectorj::agent::AgentLogger::printTimeString ( FILE *  stream  )  [inline, static, private]

Print a 'time' string with the following format: Y-m-d I:M:S -.

Definition at line 217 of file agentutils.h.

Referenced by debug(), error(), fatal(), info(), and warn().


The documentation for this class was generated from the following files:
Generated on Sun Aug 19 17:08:13 2007 for inspectorJ by  doxygen 1.5.1