RLog class
Class for server-side Roblox Logging.
Signature:
export declare class RLog
Remarks
You can also use rlog
or rLog
- for style purposes.
Constructors
Constructor | Modifiers | Description |
---|---|---|
Constructs a new RLog instance. | ||
Constructs a new RLog instance. Uses the provided table in place of the argument names. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
| LogContext | undefined | The LogContext assigned to this instance, if any. | |
| The default or "global" RLog instance. |
Methods
Method | Modifiers | Description |
---|---|---|
Creates a new RLog instance with all the same settings and properties. | ||
Creates a new RLog instance with all the same settings and properties. The provided parameters will be merged with the existing parameters on this instance. | ||
Shorthand version of debug. | ||
Logs a debug message. | ||
Shorthand version of error. | ||
Logs an error message. | ||
| Force any pending messages to be sent through the sinks, regardless of the | |
Shorthand version of info. | ||
Logs an informational message. | ||
Logs a message with a specified log level. | ||
| Resets the config for the default instance to the original settings. | |
| Overwrites the config for the default instance. | |
| Merges the given config with the existing config for the default instance. Since all RLog instances inherit their config from the default instance, this is a convenient way to provide default configuration settings. | |
Shorthand version of verbose. | ||
Logs a verbose message. | ||
Shorthand version of warning. | ||
Shorthand version of warning. | ||
Logs a warning message. | ||
Returns a new RLog with the provided config merged with the existing config. | ||
Returns a new RLog with the context set to the provided context. | ||
Returns a new RLog with the minLogLevel set to the provided level. Messages below the minimum level will be ignored. | ||