![]() |
Xors3d Engine
|
Functions | |
void | xClearLogString () |
Clears log string. | |
int | xCloseLog () |
Finishes logging. | |
int | xCreateLog (int target=1, int level=0, const char *filename="xors_log.html", const char *cssfilename="") |
Starts logging. | |
int | xGetLogLevel () |
Returns current logging level. | |
const char * | xGetLogString () |
Returns string which contains log messages. | |
int | xGetLogTarget () |
Returns current logging target. | |
void | xLogError (const char *message, const char *func="", const char *file="", int line=-1) |
Adds an Error-styled entry to log system. | |
void | xLogFatal (const char *message, const char *func="", const char *file="", int line=-1) |
Adds a Fatal-styled entry to log system. | |
void | xLogInfo (const char *message, const char *func="", const char *file="", int line=-1) |
Adds a Info-styled entry to log system. | |
void | xLogMessage (const char *message, const char *func="", const char *file="", int line=-1) |
Adds a Message-styled entry to log system. | |
void | xLogWarning (const char *message, const char *func="", const char *file="", int line=-1) |
Adds a Warning-styled entry to log system. | |
void | xSetLogLevel (int level=2) |
Changes logging level. | |
void | xSetLogTarget (int target=1) |
Changes logging target. |
int xCreateLog | ( | int | target = 1 , |
int | level = 0 , |
||
const char * | filename = "xors_log.html" , |
||
const char * | cssfilename = "" |
||
) |
Starts logging.
This function enables engine logging. You can specify logging level, target, html-file and css-file for log output.
target | Logging target. See 'Logging output targets' for more information |
level | Logging level. See 'Logging level' for more information |
filename | Log file for output (needed if HTML logging is enabled). Existing file will be overwritten! |
cssfilename | A path to an external style sheet used by HTML log. A full or relative path is acceptable. |
int xCloseLog | ( | ) |
Finishes logging.
This function finishes logging and closes log file (if HTML output was enabled).
const char* xGetLogString | ( | ) |
Returns string which contains log messages.
This function returns log meessages written since last xClearLogString() or xGetLogString() call.
void xClearLogString | ( | ) |
Clears log string.
Clears string which contains log messages. This command doesn't clear html log-file or standard output stream (std::cout).
void xSetLogLevel | ( | int | level = 2 | ) |
Changes logging level.
Logging level controls types of messages to be written to log. See 'Logging level' for more information about logging levels.
level | Logging level |
void xSetLogTarget | ( | int | target = 1 | ) |
Changes logging target.
This function allows you to specify where log messages should be written. See 'Logging output targets' for more information about logging targets.
target | Logging target |
int xGetLogLevel | ( | ) |
Returns current logging level.
int xGetLogTarget | ( | ) |
Returns current logging target.
void xLogInfo | ( | const char * | message, |
const char * | func = "" , |
||
const char * | file = "" , |
||
int | line = -1 |
||
) |
Adds a Info-styled entry to log system.
This function is useful for making log entries from your own code and watching them along with entries made by Xors3d core.
Func, file and line parameters are displayed in hovering window in HTML format. If func and file are empty and line is -1, the hovering window won't be displayed.
message | The text of entry to be logged |
func | Function name |
file | File name |
line | Line of code |
void xLogMessage | ( | const char * | message, |
const char * | func = "" , |
||
const char * | file = "" , |
||
int | line = -1 |
||
) |
Adds a Message-styled entry to log system.
This function is useful for making log entries from your own code and watching them along with entries made by Xors3d core.
Func, file and line parameters are displayed in hovering window in HTML format. If func and file are empty and line is -1, the hovering window won't be displayed.
message | The text of entry to be logged |
func | Function name |
file | File name |
line | Line of code |
void xLogWarning | ( | const char * | message, |
const char * | func = "" , |
||
const char * | file = "" , |
||
int | line = -1 |
||
) |
Adds a Warning-styled entry to log system.
This function is useful for making log entries from your own code and watching them along with entries made by Xors3d core.
Func, file and line parameters are displayed in hovering window in HTML format. If func and file are empty and line is -1, the hovering window won't be displayed.
message | The text of entry to be logged |
func | Function name |
file | File name |
line | Line of code |
void xLogError | ( | const char * | message, |
const char * | func = "" , |
||
const char * | file = "" , |
||
int | line = -1 |
||
) |
Adds an Error-styled entry to log system.
This function is useful for making log entries from your own code and watching them along with entries made by Xors3d core.
Func, file and line parameters are displayed in hovering window in HTML format. If func and file are empty and line is -1, the hovering window won't be displayed.
message | The text of entry to be logged |
func | Function name |
file | File name |
line | Line of code |
void xLogFatal | ( | const char * | message, |
const char * | func = "" , |
||
const char * | file = "" , |
||
int | line = -1 |
||
) |
Adds a Fatal-styled entry to log system.
This function is useful for making log entries from your own code and watching them along with entries made by Xors3d core.
Func, file and line parameters are displayed in hovering window in HTML format. If func and file are empty and line is -1, the hovering window won't be displayed.
message | The text of entry to be logged |
func | Function name |
file | File name |
line | Line of code |