MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / log

Method log

Engine/source/console/consoleLogger.cpp:212–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210//-----------------------------------------------------------------------------
211
212void ConsoleLogger::log( const char *consoleLine )
213{
214 // Check to see if this is intalized before using it
215 if( !smInitialized )
216 {
217 if( !init() )
218 {
219 Con::errorf( "I don't know how this happened, but log called on this without it being initialized" );
220 return;
221 }
222 }
223
224 mStream.writeLine( (U8 *)consoleLine );
225}
226
227//-----------------------------------------------------------------------------
228

Callers 1

logCallbackMethod · 0.45

Calls 3

initFunction · 0.70
errorfFunction · 0.70
writeLineMethod · 0.45

Tested by

no test coverage detected