Support Forum G3D Web Page |
System log for debugging purposes.
More...
Public Member Functions | |
Log (const String &filename="log.txt") | |
If the specified file cannot be opened for some reason, tries to open "c:/tmp/log.txt" or "c:/temp/log.txt" instead. More... | |
virtual | ~Log () |
FILE * | getFile () const |
Returns the handle to the file log. More... | |
void | lazyvprintf (const char *, va_list argPtr) |
Does not flush. More... | |
void | print (const String &s) |
void | printf (const char *fmt,...) |
Given arguments like printf, writes characters to the debug text overlay. More... | |
void | println (const String &s) |
void | section (const String &s) |
Marks the beginning of a logfile section. More... | |
void | vprintf (const char *, va_list argPtr) |
Static Public Member Functions | |
static Log * | common () |
static Log * | common (const String &filename) |
Creates the common log with the specified filename. More... | |
static String | getCommonLogFilename () |
System log for debugging purposes.
The first log opened is the "common log" and can be accessed with the static method common(). If you access common() and a common log does not yet exist, one is created for you.
G3D::Log::Log | ( | const String & | filename = "log.txt" | ) |
If the specified file cannot be opened for some reason, tries to open "c:/tmp/log.txt" or "c:/temp/log.txt" instead.
|
virtual |
|
static |
Creates the common log with the specified filename.
|
static |
FILE* G3D::Log::getFile | ( | ) | const |
Returns the handle to the file log.
void G3D::Log::lazyvprintf | ( | const char * | , |
va_list | argPtr | ||
) |
Does not flush.
void G3D::Log::print | ( | const String & | s | ) |
void G3D::Log::printf | ( | const char * | fmt, |
... | |||
) |
Given arguments like printf, writes characters to the debug text overlay.
void G3D::Log::println | ( | const String & | s | ) |
void G3D::Log::section | ( | const String & | s | ) |
Marks the beginning of a logfile section.
void G3D::Log::vprintf | ( | const char * | , |
va_list | argPtr | ||
) |