Difference between revisions of "Logging"

From OdaWiki
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
These commands work on both client and server.
 
These commands work on both client and server.
  
 +
==Console Commands & Variables==
 
===logfile===
 
===logfile===
 
Usage: '''logfile [filename]'''
 
Usage: '''logfile [filename]'''
  
This command will begin writing a log of all console events to an external file.
+
This command will begin writing a log of all console events to an external file. Odasrv writes to odasrv.log on startup by default.
  
 
'''Note''': No file extension will be applied to the log unless done by the user. For instance, if you wanted to log to an output file named "newlog.txt", you would use the command as ''logfile newlog.txt''.
 
'''Note''': No file extension will be applied to the log unless done by the user. For instance, if you wanted to log to an output file named "newlog.txt", you would use the command as ''logfile newlog.txt''.
Line 12: Line 13:
  
 
This command will stop logging if there is currently a logfile being written.
 
This command will stop logging if there is currently a logfile being written.
 +
 +
===log_fulltimestamps===
 +
Usage: '''log_fulltimestamps (0/1)'''
 +
 +
Outputs logs with extended timestamp info (dd/mm/yyyy hh:mm:ss).
 +
 +
==Command Line Parameter==
 +
===logfile===
 +
 +
Usage: '''+logfile [filename]'''
 +
 +
See console command description above for more information.

Latest revision as of 05:22, 6 August 2010

These commands work on both client and server.

Console Commands & Variables

logfile

Usage: logfile [filename]

This command will begin writing a log of all console events to an external file. Odasrv writes to odasrv.log on startup by default.

Note: No file extension will be applied to the log unless done by the user. For instance, if you wanted to log to an output file named "newlog.txt", you would use the command as logfile newlog.txt.

stoplog

Usage: stoplog

This command will stop logging if there is currently a logfile being written.

log_fulltimestamps

Usage: log_fulltimestamps (0/1)

Outputs logs with extended timestamp info (dd/mm/yyyy hh:mm:ss).

Command Line Parameter

logfile

Usage: +logfile [filename]

See console command description above for more information.