LogService
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
See everything your program prints, and keep logs that never grow without end.
MessageOut fires for every print, warn and error of the program, with Roblox's MessageType names, and GetLogHistory gives the last 1000. CreateLogFile makes a LogFile, a child of LogService.
A service: write use LogService.
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| GetLogHistory | () | { { Message: string, MessageType: MessageType, Time: number } } | The last 1000 messages, each with its MessageType and time. |
| CreateLogFile | (path: string, options: { MaxBytes: number?, Keep: number? }?) | LogFile | Starts a log file at the path, which starts a fresh file past MaxBytes and keeps Keep old ones. |
Events
| Name | Passes | Description |
|---|---|---|
| MessageOut | (string, MessageType) | Fires for every print, warn and error of the program, with its MessageType: "Output", "Warning" or "Error". |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
