vtk_dailylog

vtk_dailylog_close

Usage
vtk_daily_close id

Description
Close a daily log opened by a previous call to vtk_dailylog_open.

Examples
set dl [vtk_dailylog_open "logs/%s.log"]
vtk_dailylog_write $dl "hello world"
vtk_dailylog_close $dl

vtk_dailylog_open

Usage
vtk_dailylog_open pattern [-compress] [-noheader] [-sympath path]

Description
Open a new daily log at pattern, replacing %s in pattern with YYYY.MM.DD,
and return its identifier.  Optionally compresses previous day's log at
rotation, and/or skips the boilerplate header.  sympath is a symbolic
link (a shortcut on windows) name created to the latest log after rotation.

Examples
set dl [vtk_dailylog_open "logs/%s.log"]
vtk_dailylog_write $dl "hello world"
vtk_dailylog_close $dl

vtk_dailylog_write

Usage
vtk_dailylog_write id message ?newline?

Description
Write message to the daily log represented by id.  Include a "\n" if
newline is non-zero (which is the default).

Examples
set dl [vtk_dailylog_open "logs/%s.log"]
vtk_dailylog_write $dl "hello world"
vtk_dailylog_close $dl