| TinTin++ Mud Client Scripts |
|
|
| Logging |
| If you want to log every little thing it's useful to organize your logfiles. This script allows you to automatically add the current date to the name of a log file, and place it in the proper log directory. |
#nop This script is written for v1.99.7 and higher
#alias {log}
{
#if {"%0" == "on"}
{
#if {"$logging" != "on"}
{
#format {logfile} {logs/%t.html} {%Y-%m-%d};
#log append $logfile;
#var logging on
};
#else
{
#showme You are already logging.
}
};
#elseif {"%0" == "off"}
{
#if {"$logging" == "on"}
{
#log;
#var logging off
};
#else
{
#showme You are not logging.
}
};
#else
{
#showme Turn logging on or off?
}
}
|