Module log

Defold Eva log module You can require this file and make logger as

local log = require("eva.log") local logger = log.get_logger(logger_name)

or create logger from eva directly

local eva = require("eva.eva") local logger = eva.get_logger(logger_name)

Functions

logger.fatal(self, msg[, table]) Call log with FATAL level
logger.error(self, msg[, table]) Call log with ERROR level
logger.warn(self, msg[, table]) Call log with WARN level
logger.info(self, msg[, table]) Call log with INFO level
logger.debug(The, msg[, context]) Call log with DEBUG level
get_logger(name) Return the new logger instance


Functions

logger.fatal(self, msg[, table])
Call log with FATAL level

Parameters:

  • self userdata The log instance
  • msg string The log message
  • table context The log context (optional)
logger.error(self, msg[, table])
Call log with ERROR level

Parameters:

  • self userdata The log instance
  • msg string The log message
  • table context The log context (optional)
logger.warn(self, msg[, table])
Call log with WARN level

Parameters:

  • self userdata The log instance
  • msg string The log message
  • table context The log context (optional)
logger.info(self, msg[, table])
Call log with INFO level

Parameters:

  • self userdata The log instance
  • msg string The log message
  • table context The log context (optional)
logger.debug(The, msg[, context])
Call log with DEBUG level

Parameters:

  • The self log instance
  • msg string The log message
  • context table The log context (optional)
get_logger(name)
Return the new logger instance

Parameters:

Returns:

    logger
generated by LDoc 1.4.6 Last updated 2023-05-09 21:59:57