Improve the performance of the file backend
Andrew Thompson authored
This is done via a combination of several things:
* Make the loglevel that triggers a sync configurable
* Make the delayed_write size and intervals configurable
* Make the interval at which external rotation is checked for
  configurable
* Store the timestamp a lager_msg was created inside the lager_msg

To support these changes, several other things had to be modified:
* lager_msg:timestamp now returns a timestamp
* lager_msg:datetime was added to return the {date, time} of a message,
  like lager_msg:timestamp used to
* The configuration syntax for file backends was changed to be of the
  form {lager_file_backend, proplist()} and the old syntax was
  deprecated

Additionally, the defaults for the check_interval was raised from
'always' to 1 second, and the sync_interval was changed from 2 seconds
to one second.
79ea55a1
Name Last commit Last update
..
error_logger_lager_h.erl Correct some dialyzer warnings
lager.app.src Improve the performance of the file backend
lager.erl Improve the performance of the file backend
lager_app.erl Improve the performance of the file backend
lager_backend_throttle.erl Add a test for async_threshold
lager_config.erl A sacrifice to the dialyzer god
lager_console_backend.erl Improve lager_console_backend to support non-atom output log levels.
lager_crash_log.erl Replace mochiglobal with a public ETS table
lager_default_formatter.erl Improve the performance of the file backend
lager_file_backend.erl Improve the performance of the file backend
lager_format.erl Support printing iolists with ~s
lager_handler_watcher.erl Add an update to the global loglevel when a new handler is installed.
lager_handler_watcher_sup.erl Time makes fools of us all
lager_msg.erl Improve the performance of the file backend
lager_stdlib.erl Rename trunc_io to lager_trunc_io to prevent clashes
lager_sup.erl Allow crash_log option to be 'false' as well
lager_transform.erl Generate variable names with a function, suggested by @mshonle
lager_trunc_io.erl Remove broken code for stripping square brackets
lager_util.erl Improve the performance of the file backend