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 );