aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Logging
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/shared/Logging')
-rwxr-xr-xsrc/server/shared/Logging/Log.cpp22
-rwxr-xr-xsrc/server/shared/Logging/Log.h42
2 files changed, 32 insertions, 32 deletions
diff --git a/src/server/shared/Logging/Log.cpp b/src/server/shared/Logging/Log.cpp
index 0a53706fea2..79eab053d08 100755
--- a/src/server/shared/Logging/Log.cpp
+++ b/src/server/shared/Logging/Log.cpp
@@ -38,11 +38,11 @@ Log::Log() :
Log::~Log()
{
- if ( logfile != NULL )
+ if (logfile != NULL)
fclose(logfile);
logfile = NULL;
- if ( gmLogfile != NULL )
+ if (gmLogfile != NULL)
fclose(gmLogfile);
gmLogfile = NULL;
@@ -50,7 +50,7 @@ Log::~Log()
fclose(charLogfile);
charLogfile = NULL;
- if ( dberLogfile != NULL )
+ if (dberLogfile != NULL)
fclose(dberLogfile);
dberLogfile = NULL;
@@ -81,32 +81,32 @@ Log::~Log()
void Log::SetLogLevel(char *Level)
{
- int32 NewLevel =atoi((char*)Level);
- if ( NewLevel <0 )
+ int32 NewLevel = atoi((char*)Level);
+ if (NewLevel < 0)
NewLevel = 0;
m_logLevel = NewLevel;
- outString( "LogLevel is %u", m_logLevel );
+ outString("LogLevel is %u", m_logLevel);
}
void Log::SetLogFileLevel(char *Level)
{
- int32 NewLevel =atoi((char*)Level);
- if ( NewLevel <0 )
+ int32 NewLevel = atoi((char*)Level);
+ if (NewLevel < 0)
NewLevel = 0;
m_logFileLevel = NewLevel;
- outString( "LogFileLevel is %u", m_logFileLevel );
+ outString("LogFileLevel is %u", m_logFileLevel);
}
void Log::SetDBLogLevel(char *Level)
{
int32 NewLevel = atoi((char*)Level);
- if ( NewLevel < 0 )
+ if (NewLevel < 0)
NewLevel = 0;
m_dbLogLevel = NewLevel;
- outString( "DBLogLevel is %u", m_dbLogLevel );
+ outString("DBLogLevel is %u", m_dbLogLevel);
}
void Log::Initialize()
diff --git a/src/server/shared/Logging/Log.h b/src/server/shared/Logging/Log.h
index 4baa1695a55..9ee9d83ad3f 100755
--- a/src/server/shared/Logging/Log.h
+++ b/src/server/shared/Logging/Log.h
@@ -117,28 +117,28 @@ class Log
void SetColor(bool stdout_stream, ColorTypes color);
void ResetColor(bool stdout_stream);
- void outErrorST( const char * err, ... ) ATTR_PRINTF(2, 3);
- void outDB( LogTypes type, const char * str );
- void outString( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outString( );
- void outStringInLine( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outError( const char * err, ... ) ATTR_PRINTF(2, 3);
- void outCrash( const char * err, ... ) ATTR_PRINTF(2, 3);
- void outBasic( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outDetail( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outSQLDev( const char * str, ... ) ATTR_PRINTF(2, 3);
+ void outErrorST(const char * err, ...) ATTR_PRINTF(2, 3);
+ void outDB(LogTypes type, const char * str);
+ void outString(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outString();
+ void outStringInLine(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outError(const char * err, ...) ATTR_PRINTF(2, 3);
+ void outCrash(const char * err, ...) ATTR_PRINTF(2, 3);
+ void outBasic(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outDetail(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outSQLDev(const char * str, ...) ATTR_PRINTF(2, 3);
void outDebug(DebugLogFilters f, const char* str, ...) ATTR_PRINTF(3, 4);
- void outStaticDebug( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outDebugInLine( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outErrorDb( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outChar( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outCommand( uint32 account, const char * str, ...) ATTR_PRINTF(3, 4);
- void outRemote( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outChat( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outArena( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outSQLDriver( const char* str, ... ) ATTR_PRINTF(2, 3);
- void outWarden( const char * str, ... ) ATTR_PRINTF(2, 3);
- void outCharDump( const char * str, uint32 account_id, uint32 guid, const char * name );
+ void outStaticDebug(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outDebugInLine(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outErrorDb(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outChar(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outCommand(uint32 account, const char * str, ...) ATTR_PRINTF(3, 4);
+ void outRemote(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outChat(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outArena(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outSQLDriver(const char* str, ...) ATTR_PRINTF(2, 3);
+ void outWarden(const char * str, ...) ATTR_PRINTF(2, 3);
+ void outCharDump(const char * str, uint32 account_id, uint32 guid, const char * name);
static void outTimestamp(FILE* file);
static std::string GetTimestampStr();