renpy.log - Ren'Py

documentation index ◦ reference manual ◦ function index

# renpy.log

Function: | renpy.log | (msg):

If config.log is not set, this does nothing. Otherwise, it opens the logfile (if not already open), formats the message to 70 columns, and prints it to the logfile.

## Example

    init:
        $ config.log = "debuglog.txt"

    "Debug message coming up..."

    $ renpy.log("This message goes to the debuglog.txt")

documentation index ◦ reference manual ◦ function index