File.Only.Logger (File-Only Logger v0.1.19) View Source

Link to this section Summary

Link to this section Functions

Link to this macro

alert(message_id, variables, do_block)

View Source (macro)
Link to this macro

critical(message_id, variables, do_block)

View Source (macro)
Link to this macro

debug(message_id, variables, do_block)

View Source (macro)
Link to this macro

emergency(message_id, variables, do_block)

View Source (macro)
Link to this macro

error(message_id, variables, do_block)

View Source (macro)

Injects function error within the caller's context.

The function will write the message returned by the do_block to the configured error log file.

Examples

use File.Only.Logger

error :exit, {reason} do
  """
  \n'exit' caught...
  • Reason:
    #{inspect(reason)}
  """
end
Link to this macro

info(message_id, variables, do_block)

View Source (macro)

Injects function info within the caller's context.

The function will write the message returned by the do_block to the configured info log file.

Examples

use File.Only.Logger

info :game_state, {player, game} do
  """
  \nNote that #{player.name}...
  • Has joined game #{inspect(game.name)}
  • Game state: #{inspect(game.state)}
  """
end
Link to this macro

notice(message_id, variables, do_block)

View Source (macro)
Link to this macro

warn(message_id, variables, do_block)

View Source (macro)
Link to this macro

warning(message_id, variables, do_block)

View Source (macro)