LogFile
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
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
| Name | Type | Default | Description |
|---|---|---|---|
| Path | string | ||
| MaxBytes | number | Size past which app.log becomes app.1.log and a new file starts; 1 MB by default. | |
| Keep | number | How many old files are kept; 3 by default. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| Write | (text: string) | () | Writes one line stamped with the local time; queued, never waits. |
| Warn | (text: string) | () | |
| Error | (text: string) | () | |
| FlushAsync yields | () | () |
Events
| Name | Passes | Description |
|---|---|---|
| Written | (string) | Fires with each stamped line, for a log pane. |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
