Logger

Logging Instance

Functions

Logger:Critical(...)

View source »

Emit a log with a Critical log level.

Parameters

  • ...

    Stringable arguments.

Returns

Logger:Debug(...)

View source »

Emit a log with a Debug log level.

Parameters

  • ...

    Stringable arguments.

Returns

Logger:Error(...)

View source »

Emit a log with a Error log level.

Parameters

  • ...

    Stringable arguments.

Returns

Logger:Fatal(...)

View source »

Emit a log with a Fatal log level.

Parameters

  • ...

    Stringable arguments.

Returns

Logger:GetChild(name)

View source »

Gets the given child logger.

Parameters

  • name string

    The child component of the name.

Returns

Logger:GetChildName(name)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

Use GetChild instead.

View source »

Gets the name of the child name of this logger.

Parameters

  • name string

    The child component of the name.

Returns

Logger:GetEffectiveLevel()

View source »

Gets the effective logging level of the logger, taking into account its parent loggers.

Returns

  • number

    The parsed logging level.

Logger:GetLevel()

View source »

Gets the logging level of this logger.

Returns

  • number

    The parsed logging level of this logger.

Logger:GetParent()

View source »

Gets the parent logger of this logger.

Returns

  • optional Logger

    Parent logger, or nil if this is the root logger.

Logger:GetParentName()

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

Use GetParent instead.

View source »

Gets the name of the parent of this logger.

Returns

  • optional string

    Name of the parent, or nil if none exists.

Logger:Highlight(...)

View source »

Wrap the statements in highligt color.

Parameters

  • ...

    Stringable arguments.

Returns

Logger:Info(...)

View source »

Emit a log with a Info log level.

Parameters

  • ...

    Stringable arguments.

Returns

Logger:New(name)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

This should not be called directly. Use cityrp.logging.GetLogger, cityrp.logging.Root, GetChild or GetParent instead.

View source »

Create a new logger instance with the given name.

Parameters

  • name string

    Name of the lgger to create.

Returns

Logger:SetLevel(New)

View source »

Sets the logging level of this logger.

Parameters

  • New number or string

    logging level to set.

Returns

Logger:Trace1(...)

View source »

Emit a log with a level 1 trace log level.

Parameters

  • ...

    Stringable arguments.

Returns

Logger:Trace2(...)

View source »

Emit a log with a level 2 trace log level.

Parameters

  • ...

    Stringable arguments.

Returns

Logger:Trace3(...)

View source »

Emit a log with a level 3 trace log level.

Parameters

  • ...

    Stringable arguments.

Returns

Logger:Warning(...)

View source »

Emit a log with a Warning log level.

Parameters

  • ...

    Stringable arguments.

Returns