LogLog Class Reference

List of all members.

Static Public Member Functions

void setInternalDebugging (bool enabled)
void debug (const String &msg)
void error (const String &msg)
void setQuietMode (bool quietMode)
void warn (const String &msg)

Static Public Attributes

String DEBUG_KEY = _T("log4j.debug")

Static Protected Attributes

bool quietMode = false

Detailed Description

This class used to output log statements from within the log4cxx package.

Log4cxx components cannot make log4cxx logging calls. However, it is sometimes useful for the user to learn about what log4cxx is doing. You can enable log4cxx internal logging by calling the setInternalDebugging method.

All log4cxx internal debug calls go to standard output where as internal error messages are sent to standard error output. All internal messages are prepended with the string "log4cxx: ".


Member Function Documentation

void debug const String &  msg  )  [static]
 

This method is used to output log4cxx internal debug statements. Output goes to the standard output.

void error const String &  msg  )  [static]
 

This method is used to output log4cxx internal error statements. There is no way to disable error statements. Output goes to stderr.

void setInternalDebugging bool  enabled  )  [static]
 

Allows to enable/disable log4cxx internal logging.

void setQuietMode bool  quietMode  )  [static]
 

In quite mode LogLog generates strictly no output, not even for errors.

Parameters:
quietMode true for no output.

void warn const String &  msg  )  [static]
 

This method is used to output log4cxx internal warning statements. There is no way to disable warning statements. Output goes to stderr.


Member Data Documentation

String DEBUG_KEY = _T("log4j.debug") [static]
 

Defining this value makes log4j print log4j-internal debug statements to System.out.

The value of this string is log4j.debug.

Note that the search for all option names is case sensitive.

bool quietMode = false [static, protected]
 

In quietMode not even errors generate any output.


The documentation for this class was generated from the following files:
  • loglog.h
  • loglog.cpp

Copyright © 1999-2004, Apache Software Foundation