File-Only Logger v0.1.9 File.Only.Logger View Source
Link to this section Summary
Functions
Injects function error
within the caller's context.
The function will write a message
to the configured error log file
Injects function info
within the caller's context.
The function will write a message
to the configured info log file
Link to this section Functions
Link to this macro
app() View Source (macro)
Link to this macro
debug(event, variables, list) View Source (macro)
Link to this macro
error(event, variables, list) View Source (macro)
Injects function error
within the caller's context.
The function will write a message
to the configured error log file.
Examples
use File.Only.Logger
error :exit, {reason} do
"""
\n'exit' caught...
• Reason:
#{inspect(reason, pretty: true)}
"""
end
Link to this macro
from() View Source (macro)
Link to this macro
info(event, variables, list) View Source (macro)
Injects function info
within the caller's context.
The function will write a message
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, pretty: true)}
• Game state: #{inspect(game.state, pretty: true)}
"""
end
Link to this macro
lib() View Source (macro)
Link to this macro
mod() View Source (macro)
Link to this macro