-
Notifications
You must be signed in to change notification settings - Fork 1
Logger
Hyomoto edited this page Jun 24, 2021
·
15 revisions
Jump To | Go Back |
Arguments | Methods | Variables |
---|
The Logger makes it easy to write outputs to multiple streams. A common use case is if you wanted to write something to both the GMS output window as well as a text file. If FAST events are not disabled, all open Loggers will be closed when the game ends. Since logger must make use of the outputs, it must keep them open. If you would like to change this behavior, use a BufferedOutput instead.
global.debug = new Logger( "debug", FAST_LOGGER_DEFAULT_LENGTH, System, new FileText( "log/debug.text" ) )
debug.write( "Hello World!" );
Name | Type | Purpose |
---|---|---|
name | string |
The name of the logger, will be used to differentiate its output |
Outputs... | [__OutputStream__](__outputstream__) |
The outputs that this Logger will write to |
Jump To | top |
write | close | toString |
---|
Name | Type | Purpose |
---|---|---|
None |
No description.
Name | Type | Purpose |
---|---|---|
None |
Calls close() on all of the provided outputs.
Name | Type | Purpose |
---|---|---|
None |
Returns the name of this Logger, for debugging purposes.
Jump To | top |
---|
Name | Type | Initial | Purpose |
---|---|---|---|
Logs | int |
undefined or int | If FAST events are disabled, returns undefined. Otherwise used to manage the log list. |
__Outputs | undef |
array_create( argument_count - 1 ) | No description. |
__Name | undef |
_name | No description. |
Devon Mullane 2020