Module leo_logger_rotator

The log rotator.

Behaviours: gen_server, lager_rotator_behaviour.

References

Description

The log rotator

Function Index

code_change/3Convert process state when code is changed.
create_logfile/2
ensure_logfile/5
handle_call/3gen_server callback - Module:handle_call(Request, From, State) -> Result.
handle_cast/2Handling cast message.
handle_info/2Handling all non call/cast messages.
init/1Initiates the server.
open_logfile/2
rotate_logfile/2
start_link/2Start the server.
start_link/3
stop/1Stop the server.
terminate/2This function is called by a gen_server when it is about to terminate.

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> any()

Convert process state when code is changed

create_logfile/2

create_logfile(Name, Buffer) -> any()

ensure_logfile/5

ensure_logfile(Name, FD, Inode, Ctime, Buffer) -> any()

handle_call/3

handle_call(Request, From, State) -> any()

gen_server callback - Module:handle_call(Request, From, State) -> Result

handle_cast/2

handle_cast(Msg, State) -> any()

Handling cast message

gen_server callback - Module:handle_cast(Request, State) -> Result.

handle_info/2

handle_info(X1, State) -> any()

Handling all non call/cast messages

gen_server callback - Module:handle_info(Info, State) -> Result.

init/1

init(X1) -> any()

Initiates the server

open_logfile/2

open_logfile(Name, Buffer) -> any()

rotate_logfile/2

rotate_logfile(Name, Count) -> any()

start_link/2

start_link(ServerId, Mod) -> {ok, pid()} | ignore | {error, any()}

Start the server

start_link/3

start_link(ServerId, Mod, RotationInterval) -> {ok, pid()} | ignore | {error, any()}

stop/1

stop(Pid) -> ok

Stop the server

terminate/2

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.


Generated by EDoc