Noir
  • πŸšΆβ€β™‚οΈIntro
  • πŸ“Tutorials
    • πŸŽ“Starting Noir
    • πŸ“–Libraries
    • πŸ–₯️Services
    • ❔Libraries VS Services
    • πŸ’¬Callbacks
    • πŸ’₯Classes
    • πŸ”ŽDebugging
  • πŸ“šExamples
  • β˜„οΈAPI Reference
    • Bootstrapper
    • Built-Ins
      • Classes
        • AITarget
        • Body
        • Command
        • Connection
        • Event
        • HTTPRequest
        • HTTPResponse
        • Library
        • Message
        • Object
        • Player
        • Service
        • Task
        • TickIterationProcess
        • Tracker
        • Vehicle
        • Widgets
          • MapLabelWidget
          • MapLineWidget
          • MapObjectWidget
          • PopupWidget
          • ScreenPopupWidget
          • Widget
      • Libraries
        • Base64
        • Dataclasses
        • Deprecation
        • Events
        • HTTP
        • JSON
        • Logging
        • Matrix
        • Number
        • String
        • Table
      • Services
        • CommandService
        • GameSettingsService
        • HTTPService
        • MessageService
        • NotificationService
        • ObjectService
        • PlayerService
        • TaskService
        • TPSService
        • UIService
        • VehicleService
    • Callbacks
    • Class
    • Classes
    • Debugging
    • Definition
    • Libraries
    • Noir
    • Services
    • TypeChecking
Powered by GitBook
On this page
  • Parameters
  • Parameters
  • Parameters
  • Parameters
  • Parameters
  • Parameters
  • Parameters
Edit on GitHub
  1. API Reference
  2. Built-Ins
  3. Libraries

Logging

Noir.Libraries.Logging: NoirLibrary

A library containing methods related to logging.


Noir.Libraries.Logging.LoggingMode: NoirLoggingMode

The mode to use when logging.

  • "DebugLog": Sends logs to DebugView

  • "Chat": Sends logs to chat


Noir.Libraries.Logging.OnLog: NoirEvent

An event called when a log is sent.

Arguments: (log: string)


Noir.Libraries.Logging.Layout: string

Represents the logging layout.

Requires two '%s' in the layout. First %s is the addon name, second %s is the log type, and the third %s is the log title. The message is then added after the layout.


Noir.Libraries.Logging:SetMode(mode)

Set the logging mode.

Parameters

  • mode: NoirLoggingMode


Noir.Libraries.Logging:Log(logType, title, message, ...)

Sends a log.

Parameters

  • logType: string

  • title: string

  • message: any

  • ...: any


Noir.Libraries.Logging:_FormatLog(logType, title, message, ...)

Format a log.

Used internally.

Parameters

  • logType: string

  • title: string

  • message: any

  • ...: any


Noir.Libraries.Logging:Error(title, message, ...)

Sends an error log.

Parameters

  • title: string

  • message: any

  • ...: any


Noir.Libraries.Logging:Warning(title, message, ...)

Sends a warning log.

Parameters

  • title: string

  • message: any

  • ...: any


Noir.Libraries.Logging:Info(title, message, ...)

Sends an info log.

Parameters

  • title: string

  • message: any

  • ...: any


Noir.Libraries.Logging:Success(title, message, ...)

Sends a success log.

Parameters

  • title: string

  • message: any

  • ...: any

PreviousJSONNextMatrix

Last updated 2 months ago

β˜„οΈ