Behaviours: leo_logger_behavior.
References
| append/2 | Append a message to a file. |
| bulk_output/2 | Output messages. |
| close/1 | Close the log file. |
| format/2 | Format a log message. |
| init/3 | Initialize the logger. |
| rotate/2 | Rotate the log file. |
| sync/1 | Synchronize the file. |
append(Msg, State) -> #logger_state{}
Append a message to a file
bulk_output(Logs, State) -> #logger_state{}
Output messages
close(State) -> ok | {error, any()}
Close the log file
format(Type, Msg) -> Ret
Format a log message
init(Appender, CallbackMod, Props) -> {ok, #logger_state{}} | {error, term()}
Initialize the logger
rotate(Hours, State) -> {ok, #logger_state{}}
Rotate the log file
sync(State) -> ok | {error, term()}
Synchronize the file
Generated by EDoc