35 if ( m_pFile !=
TNULL )
49 if ( m_pFile ==
TNULL )
63 m_pFile->CPrintf(
"Log created [%s]:[%s]: %s\n", fileName, str2,
TUtil::GetTime() );
64 m_pFile->CPrintf(
"Compilation: %s\n", __TIMESTAMP__ );
79 if ( m_pFile !=
TNULL )
91 for (
TSIZE i = 0; i < m_curLevel; i++ )
93 m_LevelString[ i ] = 9;
96 m_LevelString[ m_curLevel ] = 0;
101 if ( m_pFile !=
TNULL )
104 va_start( args, format );
111 if ( m_bAllowIndentation )
113 m_pFile->CPrintf(
"%s%s", m_LevelString, str );
117 m_pFile->CPrintf( str );
124 if ( m_pFile !=
TNULL )
126 if ( m_bIsSimpleMode )
128 if ( m_bAllowIndentation )
140 TCHAR strTime[ 128 ];
144 "%d [%s] [%s]: %s: %s: %s",
149 str2 !=
TNULL ? str2 :
"",
150 !m_bAllowIndentation ? m_LevelString :
""
155 va_start( args, format );
160 m_typeCounts[ type ]++;
Core file system interface for the Toshi engine.
Logging system for the Toshi engine.
#define TIMPLEMENT_D(DESC)
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
TFORCEINLINE const T & Max(const T &a, const T &b)
TFORCEINLINE const T & Min(const T &a, const T &b)
static TFile * Create(const TString8 &a_rcFilename, TFILEMODE a_eMode=TFILEMODE_READ)
void Print(const TCHAR *format,...)
void Log(TUtil::LogType type, const TCHAR *str1, const TCHAR *str2, const TCHAR *format,...)
Error Create(const TCHAR *fileName, const TCHAR *str2, TBOOL writeExisting)
static TINT FormatV(TCHAR *a_pcString, TINT size, const TCHAR *a_pcFormat, va_list args)
static TCHAR * GetTempString8()
static constexpr const TCHAR * LogTypeToString(LogType a_eType)
static const TCHAR * GetTime()