Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 792 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 792 Bytes

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