Files
gymkhana-actions/docs/api/ESCLogger.md
2021-08-04 11:02:48 +02:00

1.8 KiB

ESCLogger

Extends: Object

Description

Logging framework for Escoria

Constants Descriptions

LOG_DEBUG

const LOG_WARNING: int = 1

Valid log levels

LOG_ERROR

const LOG_WARNING: int = 1

Valid log levels

LOG_INFO

const LOG_WARNING: int = 1

Valid log levels

LOG_WARNING

const LOG_WARNING: int = 1

Valid log levels

Property Descriptions

warning_path

var warning_path: String

The path of the ESC file that was reported last (used for removing duplicate warnings

Method Descriptions

debug

func debug(string: String, args)

Log a debug message

Parameters

  • string: Text to log
  • args: Additional information

info

func info(string: String, args)

Log an info message

Parameters

  • string: Text to log
  • args: Additional information

warning

func warning(string: String, args)

Log a warning message

Parameters

  • string: Text to log
  • args: Additional information

error

func error(string: String, args)

Log an error message

Parameters

  • string: Text to log
  • args: Additional information

report_warnings

func report_warnings(p_path: String, warnings: Array, report_once = false) -> void

Log a warning message about an ESC file

Parameters

  • p_path: Path to the file
  • warnings: Array of warnings to put out
  • report_once: Additional messages about the same file will be ignored

report_errors

func report_errors(p_path: String, errors: Array) -> void

Log an error message about an ESC file

Parameters

  • p_path: Path to the file
  • errors: Array of errors to put out