User Tools

Site Tools


addons:using_logmanager

Using The LogManager Object

What is the LogManager Object?

The LogManager object (ILogManager) is the logging object within the Ashita hook used to write to the log files. These are useful for developers when trying to gather information from users about their addons and plugins for debug purposes.

Inside of addons, this object is named and accessible via: LogManager


Using LogManager

Please refer to the using AshitaCore documentation here for a similar experience. The object usage is the same.

The main, and currently only, function of the log manager object can be used as:

void LogManager:Log(level, source, message);

  • Parameters
    • level - (number) The level of the log message being written.
    • source - (string) The source of the message, typically the function name this was invoked from.
    • message - (string) The message to log.
  • Returns
    • bool - True on success, false otherwise.

Log Levels:
 0 - None - No specific level given, base line log message.
 1 - Info - Information level message.
 2 - Warn - Warning level message.
 3 - Error - Error level message.
 4 - Debug - Debug level message.

addons/using_logmanager.txt · Last modified: 2017/04/22 02:31 by atom0s