logger object
The logger object is contained in logger.bgt in the BGT include directory, and is used to write log files with relative ease.
logger()
Parameters:
None.
Remarks:
The logger class is useful for writing trace logs for debugging your game, or recording game statistics.
Example:

    //Write a few log entries.

    #include "logger.bgt"

    logger test;

    void main()
    {
    test.header_text="Hello. This is the start of a log.";
    test.footer_text="This is the end of the log. Goodbye.";
    test.date_all_entries=true;
    test.overwrite_file=false;
    test.add_entry("Entry1.");
    wait(2000);
    test.add_entry("Entry2.");
    alert("Thanks.", "Log was written successfully.");
    test.add_entry("Logging successful.");
    test.write("test.log", true);
    }