John R. Daily
2f7f7b7dde
application:get_env/3 has different semantics than get_env/2
pirms 9 gadiem
John R. Daily
6e2d97389c
Handle lack of get_env/3 within R15
pirms 9 gadiem
Mark Allen
cbf6679c6a
Roll 3.0.1
pirms 9 gadiem
Bishop Bors
ca280a2a02
Merge pull request #282 from basho/test/mra/gh280
Add test case and fix for #280
Reviewed-by: javajolt
pirms 9 gadiem
Mark Allen
9c0e141d30
Add test case for gh280 fix
pirms 9 gadiem
Mark Allen
f87caa7f9b
Merge branch 'bugfix/jrd/280' of github.com:/basho/lager into test/mra/gh280
pirms 9 gadiem
Mark Allen
c82c11796d
Initial test case for gh#280
This provokes the failure but I am having a hard time
capturing the failure. When run from the shell the
message {'gen_event_EXIT',Handler,Reason} is sent
but within the context of eunit it doesn't seem to be
going to the right mailbox.
pirms 9 gadiem
John R. Daily
13d4db235d
Intercept error_logger as pseudo-sink before getting deeper into loglevel code
pirms 9 gadiem
Mark Allen
26540665e6
Merge pull request #270 from basho/intg
Integrate patches into lager 3.0 release
pirms 9 gadiem
Mark Allen
20edd1519a
Make sink name construction common & test
Based on code review comments put this function into util.
Added a couple simple unit tests for sanity checking purposes.
pirms 9 gadiem
Mark Allen
25b700d930
{ok, exists} is accounted for in the code path
Removed comment
pirms 9 gadiem
Mark Allen
d7cd9fc36d
Rename list_all_sinks
pirms 9 gadiem
Mark Allen
7f92811696
Use '_lager_event' for sinks
During code review we decided that using Sink ++ '_lager_event'
would provide better isolation for gen_event names than
Sink ++ '_event' as we had been using up to this point.
For example a sink called 'audit' is now 'audit_lager_event'
than 'audit_event' which might clash with a user's predefined
own module or process name.
pirms 9 gadiem
Bishop Bors
30600c5504
Merge pull request #278 from basho/unsafe_format
Add an unsafe_formatting code path
Reviewed-by: JeetKunDoug
pirms 9 gadiem
Mark Allen
2e81dc3b0e
Add some warnings around _unsafe
pirms 9 gadiem
Mark Allen
5bcdadeccb
Add log_unsafe/4
pirms 9 gadiem
Mark Allen
e0abc34a32
Remove testing crutch
pirms 9 gadiem
Mark Allen
6a458a4280
Make 'dynamic' conform to OTP gh#271
pirms 9 gadiem
Mark Allen
512fac4a21
Add unsafe_formatting option
pirms 10 gadiem
John R. Daily
cf5b39c64f
Severities must be convertible to numbers
pirms 10 gadiem
John R. Daily
9cc4abc366
Support _unsafe message levels that dodge trunc_io
pirms 10 gadiem
Mark Allen
466384b8c2
Pin goldrush to 0.1.7 release
Goldrush 0.1.7 provides for additional comparison operators in traces.
pirms 10 gadiem
pvmart
8bc6408ec0
fix lager:stop_trace
Fix stop_trace_int so it can remove an event handler
pirms 10 gadiem
Mark Allen
9879bcc201
Remove tabs that snuck in last commit
pirms 10 gadiem
Mark Allen
b4ab51912a
Merge branch 'master' of https://github.com/ericliang/lager into intg
pirms 10 gadiem
Mark Allen
d6cb3bf99f
Merge branch 'master' of https://github.com/saleyn/lager into intg
pirms 10 gadiem
Mark Allen
80eed725be
Merge branch 'feature/ranch-support' of https://github.com/soundrop/lager into intg
pirms 10 gadiem
Mark Allen
31cf6c02a9
Check configuration as suggested in gh#253
Previously bad configurations would be
silently ignored. Now they will throw
an error tuple.
pirms 10 gadiem
Mark Allen
1c550985ef
Merge branch 'pr/compress_records' of https://github.com/platbox/lager into intg
pirms 10 gadiem
Mark Allen
d06a8f3017
Merge branch 'master' of https://github.com/MaximMinin/lager into intg
pirms 10 gadiem
Mark Allen
5fef54c289
Comma derp
pirms 10 gadiem
Mark Allen
52b52aac17
Merge branch 'dz-groupleader-strategies' of https://github.com/DeadZen/lager into intg
pirms 10 gadiem
Mark Allen
d40ddd01ce
Merge branch 'feature/otp-17' into intg
pirms 10 gadiem
Mark Allen
3223014933
Use Meta as a better var name to capture intent
pirms 10 gadiem
Mark Allen
30a5010990
Silence some compiler warnings during tests
pirms 10 gadiem
Mark Allen
060402b9be
Use macro here instead of naked atom
pirms 10 gadiem
Mark Allen
6226ef621d
Make sure we use the real line number
pirms 10 gadiem
Serge Aleynikov
a8e3a9610b
Add abbreviated severity 'sev' available to formatter
pirms 10 gadiem
John R. Daily
2368846445
Update tracing docs
pirms 10 gadiem
John R. Daily
e78cc1c40d
Backwards compatibility for any code sufficiently ill-behaved to invoke 2.x do_log directly
pirms 10 gadiem
John R. Daily
4f94260239
Revert decision to throw a {sink, Sink} tuple at every backend; instead, special case the throttle
pirms 10 gadiem
John R. Daily
513d233ea4
Drop last bits that now duplicate information from earlier
pirms 10 gadiem
John R. Daily
d74d877a02
Improve README on sink naming, async configuration per-sink
pirms 10 gadiem
Mark Allen
b8552a8cb6
Fix and cleanup tests for multiple-sinks
Previously, would fail due to lager:get_loglevel/2 not being exported.
pirms 10 gadiem
Mark Allen
1906cb247d
Export get_loglevel/2 (derp)
pirms 10 gadiem
Mark Allen
84cc6322ec
Add tests for multiple sinks
pirms 10 gadiem
Mark Allen
6936bbc772
Add __lager_test_sink to rebar.config
pirms 10 gadiem
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.
pirms 10 gadiem
Mark Allen
31f5605560
Add multiple sink documentation
pirms 10 gadiem
Mark Allen
f233b6d342
Return sinkname when not configured from transform
pirms 10 gadiem