John R. Daily
cf5b39c64f
Severities must be convertible to numbers
9 years ago
John R. Daily
9cc4abc366
Support _unsafe message levels that dodge trunc_io
9 years ago
Mark Allen
466384b8c2
Pin goldrush to 0.1.7 release
Goldrush 0.1.7 provides for additional comparison operators in traces.
10 years ago
Mark Allen
9879bcc201
Remove tabs that snuck in last commit
10 years ago
Mark Allen
b4ab51912a
Merge branch 'master' of https://github.com/ericliang/lager into intg
10 years ago
Mark Allen
d6cb3bf99f
Merge branch 'master' of https://github.com/saleyn/lager into intg
10 years ago
Mark Allen
80eed725be
Merge branch 'feature/ranch-support' of https://github.com/soundrop/lager into intg
10 years ago
Mark Allen
31cf6c02a9
Check configuration as suggested in gh#253
Previously bad configurations would be
silently ignored. Now they will throw
an error tuple.
10 years ago
Mark Allen
1c550985ef
Merge branch 'pr/compress_records' of https://github.com/platbox/lager into intg
10 years ago
Mark Allen
d06a8f3017
Merge branch 'master' of https://github.com/MaximMinin/lager into intg
10 years ago
Mark Allen
5fef54c289
Comma derp
10 years ago
Mark Allen
52b52aac17
Merge branch 'dz-groupleader-strategies' of https://github.com/DeadZen/lager into intg
10 years ago
Mark Allen
d40ddd01ce
Merge branch 'feature/otp-17' into intg
10 years ago
Mark Allen
3223014933
Use Meta as a better var name to capture intent
10 years ago
Mark Allen
30a5010990
Silence some compiler warnings during tests
10 years ago
Mark Allen
060402b9be
Use macro here instead of naked atom
10 years ago
Mark Allen
6226ef621d
Make sure we use the real line number
10 years ago
Serge Aleynikov
a8e3a9610b
Add abbreviated severity 'sev' available to formatter
10 years ago
John R. Daily
2368846445
Update tracing docs
10 years ago
John R. Daily
e78cc1c40d
Backwards compatibility for any code sufficiently ill-behaved to invoke 2.x do_log directly
10 years ago
John R. Daily
4f94260239
Revert decision to throw a {sink, Sink} tuple at every backend; instead, special case the throttle
10 years ago
John R. Daily
513d233ea4
Drop last bits that now duplicate information from earlier
10 years ago
John R. Daily
d74d877a02
Improve README on sink naming, async configuration per-sink
10 years ago
Mark Allen
b8552a8cb6
Fix and cleanup tests for multiple-sinks
Previously, would fail due to lager:get_loglevel/2 not being exported.
10 years ago
Mark Allen
1906cb247d
Export get_loglevel/2 (derp)
10 years ago
Mark Allen
84cc6322ec
Add tests for multiple sinks
10 years ago
Mark Allen
6936bbc772
Add __lager_test_sink to rebar.config
10 years ago
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 years ago
Mark Allen
31f5605560
Add multiple sink documentation
10 years ago
Mark Allen
f233b6d342
Return sinkname when not configured from transform
10 years ago
Mark Allen
c4e2520665
Fix derpy case clause with whereis
10 years ago
Pedram Nimreezi
d5e7843387
Add support for group leader strategies
The default strategy is 'handle', for backwards compatibility,
and is set to that if otherwise undefined. Other strategies
include 'mirror' and 'ignore'.
Before when the error_logger was removed when lager starts up,
some functionality was chopped off, such as forwarding io to the
caller's group leader, this is supported with the strategy 'ignore'
and is similar to how the io system in erlang works traditionally.
Setting the 'mirror' strategy will essentially combine the other
two strategies such that the remote node reply is forwarded and also
handled locally. This is in some cases more in-line with what some
people might expect, efficiency may vary.
The traditional 'ignore' approach is more suitable and most likely
originally intended for embedded terminals where 'mirror'-ing the io
is largely unnecessary.
10 years ago
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 years ago
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 years ago
Mark Allen
5f811f332f
Merge branch 'feature/multiple-sinks' of github.com:/basho/lager into feature/multiple-sinks
10 years ago
Mark Allen
4da506b06b
Add check for same file across backends.
Throw {error, bad_config} if we find one during
handler startup.
10 years ago
John R. Daily
96e3ba7095
More/fixed comments
10 years ago
John R. Daily
066fa59a1c
The audit sink was always for experimentation. Remove it before it accidentally slips into a release
10 years ago
John R. Daily
b0a2c4c82e
More bugfixes re: trace file handling
10 years ago
John R. Daily
89ca81df2d
Bugfix: handler tuple order was incorrect
10 years ago
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 years ago
Ted Burghart
b8a8ed0b28
Merge mkurkov:fix/error-logger-backend-unicode, PR #259 , with adjustments for handling extra data.
10 years ago
Ted Burghart
5b43a8bae4
Change how result strings are handled to accomodate additional data.
10 years ago
John R. Daily
e08fc432a8
Fix status
10 years ago
John R. Daily
302767ec0f
Make dialyzer happy
10 years ago
Ted Burghart
d35f20f609
merge current work from master branch, and clean up a couple of warnings along the way
10 years ago
Ted Burghart
96f5b5c57d
changed has_line_numbers() to recognize the new OTP release pattern.
10 years ago
John R. Daily
d5856f2284
Add sink identification export
10 years ago
John R. Daily
439a81c2ca
Introduce sleep to account for interval between writes necessary for rotation to work
10 years ago
John R. Daily
9d9bf29633
Fix init (for some questionable definition of fix)
10 years ago