rlog package
Context-based server-side logging framework for ROBLOX projects.
Remarks
Exports the RLog class as the primary entry point.
Classes
Class | Description |
---|---|
Context for a collection of log entries. | |
Class for server-side Roblox Logging. |
Enumerations
Enumeration | Description |
---|---|
Enum representing the various log levels, or "importance" of a LogEntry. |
Functions
Function | Description |
---|---|
Enricher for adding a tag to a log matching the file path, if absent. | |
Enricher for adding a tag to a log matching the function name, if absent. | |
The default sink for sending messages to the roblox console. | |
Attaches source_metadata to the output of a log entry. | |
Wraps around a callback, automatically creating and managing the lifecycle for a LogContext. | |
Wraps around a callback, automatically creating and managing the lifecycle for a LogContext. | |
Wraps around an async callback, automatically creating and managing the lifecycle for a LogContext. | |
Wraps around an async callback, automatically creating and managing the lifecycle for a LogContext. |
Interfaces
Interface | Description |
---|---|
A single logging event. | |
Configuration settings for RLog. | |
Table version of the constructor parameters for RLog. | |
Configuration options for robloxConsoleSink(). | |
Configuration settings for serialization. | |
Metadata used in identifying where in the source code a log occurred. |
Variables
Variable | Description |
---|---|
Mapping to RLog.default for easier default usage. |
Type Aliases
Type Alias | Description |
---|---|
A callback that take in a LogContext and optionally returns a value. | |
Type representing a callback function for converting log entries to output. | |
Type representing the additional data associated with a log entry. | |
Type representing a callback function for enriching log entries, or an "enricher". Enrichers optionally mutate LogEntrys. You can add data to a LogEntry, edit its metadata, or just return it if you don't need to do anything. | |
Type representing a callback function for consuming log entries, or a "sink". Sinks are generally used to send logs to an external database or service, but they can also be used to filter logs by "consuming" them. If your callback returns | |
Type representing a callback function for sending a log to the roblox console. | |
Version of RLogConfig that allows all data to be absent. |