John R. Daily
e070348290
Fix some legacy loglevel handling in tests
10 jaren geleden
John R. Daily
f37a957a0e
Support extra sink argument
10 jaren geleden
John R. Daily
daf3fdeb02
Move the extra sink argument down a layer so that reinstalls work properly
10 jaren geleden
John R. Daily
a71a7ff1a7
Do not forget to clear traces from global loglevel settings
10 jaren geleden
John R. Daily
a230240c58
Support new sink metadata in init
10 jaren geleden
MaximMinin
d66790f612
test for tracing to a dedicated file if root_log is set.
10 jaren geleden
Mikl Kurkov
171e9596ea
Fix error_logger backend 'Format error' on unicode in Args
10 jaren geleden
Mikl Kurkov
e9fba0d64c
Fix noproc test fail
10 jaren geleden
John R. Daily
194f4aeb94
lager maps to lager_event, so audit maps to audit_event
10 jaren geleden
John R. Daily
752065eb55
Read extra sinks from configuration options
10 jaren geleden
John R. Daily
5f27739e1e
At the lowest level of the transform, allow multiple sinks
10 jaren geleden
Ted Burghart
1f76822d10
Update rebar dependencies for OTP-17 development.
Add/update file copyright headers where deterministically appropriate.
Note:
Many updates to rebar.config files have been scripted to ensure
consistency and likely have re-ordered configuration settings and options.
While the file may look significantly different, the content other than
dependency updates (and, in some cases, more stringent compilation options)
should be the same from rebar's perspective.
10 jaren geleden
MaximMinin
b7da929f69
trace_file don't work, if env "log_root" is set.
10 jaren geleden
John R. Daily
5c1a0795cf
Need dat get_loglevels/4
10 jaren geleden
John R. Daily
087e931004
error_logger was always its own sink - return to that behavior
10 jaren geleden
John R. Daily
4343bc776d
Cannot use basho_bench without a parse transform; I hope this minimal change will do it
10 jaren geleden
John R. Daily
1b14a42b5b
Follow-on to previous fix
10 jaren geleden
John R. Daily
3ae2ca020c
Mixed up application:get_env with proplists behavior
10 jaren geleden
John R. Daily
a42eda8c96
Misunderstood the inbound Module term. Should probably have specs and/or a different name. Actually represents the unique ID we want, e.g. {lager_file_handler, "foo.log"}
10 jaren geleden
John R. Daily
67565b4444
Need 2ary get_loglevel (shame it is broken tho)
10 jaren geleden
John R. Daily
564bf98248
Do not lose existing handlers
10 jaren geleden
John R. Daily
5f3f0fee6c
Match the correct tuple. Return an {ok, _} tuple so the next case statement does not get confused
10 jaren geleden
John R. Daily
fb72c10ff0
Including the config in the handler ID only confuses our ability to detect matches from the handlers list
10 jaren geleden
John R. Daily
347c9c53b4
Lager STARTS
10 jaren geleden
John R. Daily
52c753c4f8
More bugfixes
10 jaren geleden
John R. Daily
a462c046fe
Various bugfixes of various levels of desperation
10 jaren geleden
John R. Daily
8fae61af12
More config tweaks
10 jaren geleden
John R. Daily
612dd4e65a
Finish fixing get/set. Got out of the habit of compiling before committing, oops
10 jaren geleden
John R. Daily
2926dd51a1
get/2 was confusing: Sink, Key or Key, Default. Clean up by forcing into {Sink, Key} tuple
10 jaren geleden
John R. Daily
ba5548e057
update_loglevel_config now takes a sink argument
10 jaren geleden
John R. Daily
b724b6bd42
Monads...still do not know what they are but I know I need em
10 jaren geleden
John R. Daily
b88e95ea42
macro ftw
10 jaren geleden
John R. Daily
efd3164248
Stupid compiler errors
10 jaren geleden
John R. Daily
21fd439a6f
Stupid compiler errors
10 jaren geleden
John R. Daily
53488fcb1a
Trailing commas, my old enemy
10 jaren geleden
John R. Daily
0ec113132b
Traces now are assigned to a single sink as requested (or lager_event by default)
10 jaren geleden
John R. Daily
cc7e4d26d4
Start incorporating support for dedicated tracing sink
10 jaren geleden
John R. Daily
db697bc720
Revert last change: we are not (yet) allowing backends to watch multiple sinks
10 jaren geleden
John R. Daily
6f6b0110f2
Starting down the path of making backends handle multiple sinks (primary use case is tracing)
10 jaren geleden
John R. Daily
c0d859441f
Rethink configuration, heavily rework lager_app:start for more modularity
10 jaren geleden
John R. Daily
a932df0e7d
To make configuration backwards compatible, I think lager_event stays as a special sink, with other sinks able to be added
10 jaren geleden
John R. Daily
f8cd7ec888
More DEFAULT_SINK
10 jaren geleden
Mayorov Andrey
be758ee3f4
Provide means to compress printed record output
Sometimes there are a LOT of records going through logging backends
which contain notable number of empty (i.e. undefined) fields. This
humble patch solemnly introduces new function `lager:pr/3` designed to
help cope with such kind of issues, providing a one and only option `compress`
which, when turned on, effectively eliminates any empty fields in records.
10 jaren geleden
John R. Daily
2d33a13415
Clarify that "event" in this module is what we are now calling a "sink"
10 jaren geleden
John R. Daily
730ab66717
For places in the revised API where we use lager_event as a default value, use a macro instead
10 jaren geleden
Mark Allen
f6e6b83927
Record some code comments from jrd walk-thru
10 jaren geleden
Mark Allen
90ce2ac2b9
WIP
Finish lager API modifications
Update config API to handle multiple sinks
Identify areas where new code is yet to be written
10 jaren geleden
Mark Allen
546036f75a
WIP
First pass at adding sink parameter into the external API layer.
TODO:
* config updates
* loglevel changes per sink
10 jaren geleden
Andrew Thompson
d33ccf3b69
Version 2.1.1
10 jaren geleden
Andrew Thompson
89cd5df460
Merge tag '2.1.0'
10 jaren geleden