Mark Allen
060402b9be
Use macro here instead of naked atom
преди 10 години
Mark Allen
6226ef621d
Make sure we use the real line number
преди 10 години
John R. Daily
2368846445
Update tracing docs
преди 10 години
John R. Daily
e78cc1c40d
Backwards compatibility for any code sufficiently ill-behaved to invoke 2.x do_log directly
преди 10 години
John R. Daily
4f94260239
Revert decision to throw a {sink, Sink} tuple at every backend; instead, special case the throttle
преди 10 години
John R. Daily
513d233ea4
Drop last bits that now duplicate information from earlier
преди 10 години
John R. Daily
d74d877a02
Improve README on sink naming, async configuration per-sink
преди 10 години
Mark Allen
b8552a8cb6
Fix and cleanup tests for multiple-sinks
Previously, would fail due to lager:get_loglevel/2 not being exported.
преди 10 години
Mark Allen
1906cb247d
Export get_loglevel/2 (derp)
преди 10 години
Mark Allen
84cc6322ec
Add tests for multiple sinks
преди 10 години
Mark Allen
6936bbc772
Add __lager_test_sink to rebar.config
преди 10 години
Mark Allen
8a178613e3
Fix errors in dispatch_log/6 parse transform
Originally I tried to bodge in a handcoded parse transform and it
did not go very well. This time, we simplify the case statement
in lager.erl and use this simplified version in the parse transform
after getting the AST from the Erlang compiler.
преди 10 години
Mark Allen
31f5605560
Add multiple sink documentation
преди 10 години
Mark Allen
f233b6d342
Return sinkname when not configured from transform
преди 10 години
Mark Allen
c4e2520665
Fix derpy case clause with whereis
преди 10 години
Mark Allen
aa195121e7
Get loglevel of sink not default in transform
Previously, code would only look up the default sink's
loglevel, not the referenced sink name's loglevel.
In other words, if lager_event's loglevel was set to NONE,
it squelch all events from all sinks, and conversely if
a sink's loglevel was set to NONE, it would be silently
ignored.
преди 10 години
Mark Allen
566a6dc626
If Sink referenced but not running, return error
If a sink is referenced in a call, but is not configured
(by being a running process), then emit an
{error, {sink_not_configured, Sink}} tuple.
преди 10 години
Mark Allen
5f811f332f
Merge branch 'feature/multiple-sinks' of github.com:/basho/lager into feature/multiple-sinks
преди 10 години
Mark Allen
4da506b06b
Add check for same file across backends.
Throw {error, bad_config} if we find one during
handler startup.
преди 10 години
John R. Daily
96e3ba7095
More/fixed comments
преди 10 години
John R. Daily
066fa59a1c
The audit sink was always for experimentation. Remove it before it accidentally slips into a release
преди 10 години
John R. Daily
b0a2c4c82e
More bugfixes re: trace file handling
преди 10 години
John R. Daily
89ca81df2d
Bugfix: handler tuple order was incorrect
преди 10 години
John R. Daily
13ec782f0a
Fix the async threshold test to eliminate a race condition. It now tests something slightly different, but should be sufficient
преди 10 години
John R. Daily
e08fc432a8
Fix status
преди 10 години
John R. Daily
302767ec0f
Make dialyzer happy
преди 10 години
John R. Daily
d5856f2284
Add sink identification export
преди 10 години
John R. Daily
439a81c2ca
Introduce sleep to account for interval between writes necessary for rotation to work
преди 10 години
John R. Daily
9d9bf29633
Fix init (for some questionable definition of fix)
преди 10 години
John R. Daily
e070348290
Fix some legacy loglevel handling in tests
преди 10 години
John R. Daily
f37a957a0e
Support extra sink argument
преди 10 години
John R. Daily
daf3fdeb02
Move the extra sink argument down a layer so that reinstalls work properly
преди 10 години
John R. Daily
a71a7ff1a7
Do not forget to clear traces from global loglevel settings
преди 10 години
John R. Daily
a230240c58
Support new sink metadata in init
преди 10 години
John R. Daily
194f4aeb94
lager maps to lager_event, so audit maps to audit_event
преди 10 години
John R. Daily
752065eb55
Read extra sinks from configuration options
преди 10 години
John R. Daily
5f27739e1e
At the lowest level of the transform, allow multiple sinks
преди 10 години
John R. Daily
5c1a0795cf
Need dat get_loglevels/4
преди 10 години
John R. Daily
087e931004
error_logger was always its own sink - return to that behavior
преди 10 години
John R. Daily
4343bc776d
Cannot use basho_bench without a parse transform; I hope this minimal change will do it
преди 10 години
John R. Daily
1b14a42b5b
Follow-on to previous fix
преди 10 години
John R. Daily
3ae2ca020c
Mixed up application:get_env with proplists behavior
преди 10 години
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 години
John R. Daily
67565b4444
Need 2ary get_loglevel (shame it is broken tho)
преди 10 години
John R. Daily
564bf98248
Do not lose existing handlers
преди 10 години
John R. Daily
5f3f0fee6c
Match the correct tuple. Return an {ok, _} tuple so the next case statement does not get confused
преди 10 години
John R. Daily
fb72c10ff0
Including the config in the handler ID only confuses our ability to detect matches from the handlers list
преди 10 години
John R. Daily
347c9c53b4
Lager STARTS
преди 10 години
John R. Daily
52c753c4f8
More bugfixes
преди 10 години
John R. Daily
a462c046fe
Various bugfixes of various levels of desperation
преди 10 години