File.Only.Logger (File-Only Logger v0.1.17) View Source
Link to this section Summary
Functions
Injects function error
within the caller's context.
Injects function info
within the caller's context.
Link to this section Functions
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)}
"""
end
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)}
• Game state: #{inspect(game.state)}
"""
end