Forest Logo
search
package_2

logr

By @cody-nelson

Roblox

Mirrored

Logr

Logr is a structured logging utility library for Lua.

Functions

Logr.new

function Logr.new(name: string, level: string?): Logr

name (string): The name of the logger which will be shown in log messages

level (string?): The initial log level of the logger.

Returns a new Logr

Logr:GetDefaultLevel

function Logr:GetDefaultLevel(): string

Returns the current default log level for new loggers.

Logr:SetDefaultLevel

function Logr:SetDefaultLevel(level: string)

Sets the default log level for new loggers

level (string): The new default log level

Logr:GetLogLevels

Logr:GetLogLevelId

Logr:GetLogLevel

Logr:SetLogLevel

Logr:Debug

Logr:Info

Logr:Warn

Logr:Error

Logr:Critical

Package Details

Install command (Click to copy)


Version

0.0.9

License

MIT

check_circle

Safe for commercial use

Automated license review — not legal advice.