Skip to main content

@rbxts/rlog > RLog > (constructor)

RLog.(constructor)

Constructs a new RLog instance.

Signature:

constructor(config?: PartialRLogConfig, context?: LogContext, inheritDefault?: boolean);

Parameters

Parameter

Type

Description

config

PartialRLogConfig

(Optional) Configuration settings to use for this logger instance.

context

LogContext

(Optional) The LogContext to use as a base for this instance.

inheritDefault

boolean

(Optional) Whether to merge configs with the default instance. Defaults to true.