LogFile

Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.

ShotInstancenot creatablecomingData and time

Up and coming

A log of time-stamped lines that starts a fresh file when it gets big.

LogService's CreateLogFile gives one. Write stamps one line with the local time, queued, and never waits. Past MaxBytes, app.log becomes app.1.log and a new app.log starts, and Keep old files stay. Written fires with each stamped line, for a log pane.

Properties

NameTypeDefaultDescription
Pathstring
MaxBytesnumberSize past which app.log becomes app.1.log and a new file starts; 1 MB by default.
KeepnumberHow many old files are kept; 3 by default.

Methods

NameArgumentsReturnsDescription
Write(text: string)()Writes one line stamped with the local time; queued, never waits.
Warn(text: string)()
Error(text: string)()
FlushAsync
yields
()()

Events

NamePassesDescription
Written(string)Fires with each stamped line, for a log pane.
From ShotInstance 33