Behaviours: gen_server.
References
| append/3 | Append a message to a log-file. |
| append/4 | |
| bulk_output/1 | Output a bulked message to a log-file. |
| close/1 | Close a logger. |
| code_change/3 | Convert process state when code is changed. |
| force_rotation/1 | Rotate a log-file. |
| handle_call/3 | gen_server callback - Module:handle_call(Request, From, State) -> Result. |
| handle_cast/2 | Handling cast message. |
| handle_info/2 | Handling all non call/cast messages. |
| init/1 | Initiates the server. |
| rotate/1 | Rotate a log-file. |
| start_link/4 | Start the server. |
| stop/1 | Stop the server. |
| sync/1 | Synchronize a message to a log-file. |
| terminate/2 | This function is called by a gen_server when it is about to terminate. |
| update_log_level/2 | Update the log-level. |
append(Method, Id, Log) -> ok
Method = '?LOG_APPEND_SYNC' | '?LOG_APPEND_ASYNC'Id = atom()Log = any()
Append a message to a log-file.
append(X1, Id, Log, Level) -> any()
bulk_output(Id) -> ok
Id = atom()
Output a bulked message to a log-file.
close(Id) -> ok
Id = atom()
Close a logger
code_change(OldVsn, State, Extra) -> any()
Convert process state when code is changed
force_rotation(Id) -> ok
Id = atom()
Rotate a log-file.
handle_call(X1, From, State) -> any()
gen_server callback - Module:handle_call(Request, From, State) -> Result
handle_cast(X1, Logger_state) -> any()
Handling cast message
gen_server callback - Module:handle_cast(Request, State) -> Result.
handle_info(Info, State) -> any()
Handling all non call/cast messages
gen_server callback - Module:handle_info(Info, State) -> Result.
init(X1) -> any()
Initiates the server
rotate(Id) -> ok
Id = atom()
Rotate a log-file.
start_link(Id, Appender, CallbackMod, Props) -> {ok, pid()} | ignore | {error, any()}
Id = atom()Appender = atom()CallbackMod = module()Props = [{atom(), any()}]
Start the server
stop(Id) -> ok
Id = pid() | atom()
Stop the server
sync(Id) -> ok
Id = atom()
Synchronize a message to a log-file.
terminate(Reason, State) -> any()
This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason.
update_log_level(Id, LogLevel) -> ok
Id = atom()LogLevel = non_neg_integer()
Update the log-level
Generated by EDoc