Behaviours: gen_event.
size
and keep count
rotated files. date
is
an alternate rotation trigger, based on time. See the README for
documentation.
For performance, the file backend does delayed writes, although it will
sync at specific log levels, configured via the sync_on
option. By default
the error level or above will trigger a sync.
option() = {file, string()} | {level, lager:log_level()} | {size, non_neg_integer()} | {date, string()} | {count, non_neg_integer()} | {rotator, atom()} | {high_water_mark, non_neg_integer()} | {flush_queue, boolean()} | {flush_threshold, non_neg_integer()} | {sync_interval, non_neg_integer()} | {sync_size, non_neg_integer()} | {sync_on, lager:log_level()} | {check_interval, non_neg_integer()} | {formatter, atom()} | {formatter_config, term()}
config_to_id/1 | |
init/1 |
config_to_id(Config) -> any()
init(LogFileConfig::[option(), ...]) -> {ok, #state{name = string(), level = {mask, integer()}, fd = file:io_device() | undefined, inode = integer() | undefined, flap = boolean(), size = integer(), date = undefined | string(), count = integer(), rotator = atom(), shaper = lager_shaper(), formatter = atom(), formatter_config = any(), sync_on = {mask, integer()}, check_interval = non_neg_integer(), sync_interval = non_neg_integer(), sync_size = non_neg_integer(), last_check = erlang:timestamp()}} | {error, {fatal, bad_config}}
Generated by EDoc