27 #ifndef YUILogComponent
28 #error Missing #define YUILogComponent "myComponent" before #include "YUILog.h"
55 #define yuiDebug() YUILog::debug ( YUILogComponent, __FILE__, __LINE__, __FUNCTION__ )
56 #define yuiMilestone() YUILog::milestone( YUILogComponent, __FILE__, __LINE__, __FUNCTION__ )
57 #define yuiWarning() YUILog::warning ( YUILogComponent, __FILE__, __LINE__, __FUNCTION__ )
58 #define yuiError() YUILog::error ( YUILogComponent, __FILE__, __LINE__, __FUNCTION__ )
83 typedef void (*YUILoggerFunction)( YUILogLevel_t,
90 typedef void (*YUIEnableDebugLoggingFunction)( bool );
91 typedef bool (*YUIDebugLoggingEnabledFunction)();
105 static std::ostream &
debug (
const char * logComponent,
const char * sourceFileName,
int lineNo,
const char * functionName );
106 static std::ostream & milestone(
const char * logComponent,
const char * sourceFileName,
int lineNo,
const char * functionName );
107 static std::ostream & warning (
const char * logComponent,
const char * sourceFileName,
int lineNo,
const char * functionName );
108 static std::ostream & error (
const char * logComponent,
const char * sourceFileName,
int lineNo,
const char * functionName );
113 std::ostream &
log( YUILogLevel_t logLevel,
114 const char * logComponent,
115 const char * sourceFileName,
117 const char * functionName );
183 static YUILoggerFunction
loggerFunction(
bool returnStdLogger =
false );
196 YUIDebugLoggingEnabledFunction isEnabledFunction );
213 static std::string
basename(
const std::string & fileNameWithPath );
static void setLoggerFunction(YUILoggerFunction loggerFunction)
std::ostream & log(YUILogLevel_t logLevel, const char *logComponent, const char *sourceFileName, int lineNo, const char *functionName)
static std::ostream & debug(const char *logComponent, const char *sourceFileName, int lineNo, const char *functionName)
static std::string basename(const std::string &fileNameWithPath)
static bool setLogFileName(const std::string &logFileName)
static std::string logFileName()
static YUIDebugLoggingEnabledFunction debugLoggingEnabledHook()
static void setEnableDebugLoggingHooks(YUIEnableDebugLoggingFunction enableFunction, YUIDebugLoggingEnabledFunction isEnabledFunction)
static YUIEnableDebugLoggingFunction enableDebugLoggingHook()
static YUILog * instance()
static bool debugLoggingEnabled()
static void enableDebugLogging(bool debugLogging=true)
static YUILoggerFunction loggerFunction(bool returnStdLogger=false)