User Tools

Site Tools


addons:using_libs:log

Log Library

The log library is a small and simple library that adds logging functions for addons to use. These functions are mainly for debugging purposes.

The following functions are exposed by this library

void log_string(string color, string type, string …);

  • Parameters
    • color - The color to set the string. (As a string.)
    • type - A prefix to the string to signify the type of message. Such as Warning, Error, etc.
    • … - The string to display.
  • Returns
    • No return value.

void log_message(string …);

  • Parameters
    • … - The string to display.
  • Returns
    • No return value.

void log_error(string …);

  • Parameters
    • … - The string to display.
  • Returns
    • No return value.

void log_warning(string …);

  • Parameters
    • … - The string to display.
  • Returns
    • No return value.
addons/using_libs/log.txt · Last modified: 2015/11/19 22:57 by atom0s