sysLog

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
   sysCommand
   sysDate
   sysDirectory
   sysElapsed
   sysEnvVar
   sysLoadScript
   sysLoadLibrary
   sysLog
   sysLogFile
   sysLogLevel
   sysProfile
   sysPrompt
   sysSleep
   sysShow
   sysStartDate
   sysStartTime
   sysSystemProfile
   sysTime
   sysTrace
   sysUserProfile
String Library
Regular Expression Lib.
File Library
Database Library
C API
C++ API
CSS Links
  
sysLog(
  [const message, // message to display (default: none)
   const raw,     // raw mode (default: false)
   const quiet])  // silent mode: to logfile only (default: false)

Displays a message on screen and writes it to the logfile if one was opened. If no argument is passed, an empty line is logged. While the message is displayed on the screen as is, each line in the logfile will start with a timestamp.

If raw is true, logging is done in raw mode, e.g. no loglevel indenting and no timestamp in the logfile.

If quiet is true, the message is written to the logfile only, but not displayed on the screen.

Examples:

sysLog();               // empty line
sysLog('message');      // message cooked mode
sysLog('test', true);   // test in raw mode
sysLog('hello', 0, 1);  // write to logfile only
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>