sysLog

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
   sysCommand
   sysDate
   sysDateFormat
   sysDateTime
   sysDirectory
   sysElapsed
   sysEnvVar
   sysLoadScript
   sysLoadLibrary
   sysLog
   sysLogFile
   sysLogLevel
   sysPrompt
   sysSleep
   sysSecondsSince
   sysShow
   sysStartDate
   sysStartDateTime
   sysStartTime
   sysStartTimestamp
   sysTime
   sysTimestamp
   sysTrace
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL 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 log level 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 Landquart Last revision: 27.05.2002 << Back  Top  Next >>