Mark Allen
8c08e9dc2b
Document error_logger_whitelist and other updates
Closes #363
před 6 roky
Mark Allen
c215a29c15
Merge pull request #488 from erlang-lager/gh481
Maybe remove OTP 21 logger default handler
před 6 roky
Mark Allen
9f8d7a705e
Maybe remove OTP 21 logger default handler
Closes #481
před 6 roky
Mark Allen
411edc71ee
Merge pull request #486 from Ledest/master
Remove check for erlang:is_map/1
před 6 roky
Led
1062fdd786
.gitignore: add .rebar
před 6 roky
Led
9b3df0b51f
lager_trunc_io: clean up unneeded check for erlang:is_map/1
před 6 roky
Mark Allen
ecb78c54cf
Merge pull request #485 from velimir0xff/cowboy-stream-process-error
Handle errors generated by cowboy which were treated as ranch errors
před 6 roky
Grigory Starinkin
5cbc1260fc
Handle errors generated by cowboy which were treated as ranch errors
c998673eb0/src/cowboy_stream_h.erl (L153-L157)
před 6 roky
Andrew Thompson
69b4ada234
Roll 3.6.7
před 6 roky
Mark Allen
16780a62ff
Merge pull request #480 from erlang-lager/adt/better-sys-trace
Improve debug tracing support
před 6 roky
Mark Allen
6a7647df19
Merge pull request #479 from erlang-lager/fix_error_lager_test
Check for the right number of dropped messages
před 6 roky
Andrew Thompson
f94412dc98
Improve debug tracing support
By an unhappy accident, OTP21 added functionality for 'named' trace
functions. This has a pattern match that matches the old trace function
(a 2 tuple where the second element is itself a 2 tuple):
https://github.com/erlang/otp/pull/1781
This patch changes to using a versioned record (so we can extend the
tracing later if needed) and adds 3 more options to tracing; count,
timeout and format string.
Additionally, tracing an OTP process via start_link arguments is now
documented.
před 6 roky
Mark Allen
afdb8ed2f8
Check for the right number of dropped messages
Was 16, is now 15 after we merged #475
před 6 roky
Mark Allen
37b7facc41
Roll 3.6.6
před 6 roky
Mark Allen
3d61650ae2
Merge pull request #475 from russagit/master
Fix check_hwm
před 6 roky
Mark Allen
17202185c9
Merge branch 'getong-variable_fix'
před 6 roky
Mark Allen
24a709922f
Merge branch 'variable_fix' of https://github.com/getong/lager into getong-variable_fix
před 6 roky
getong
2fc5ccf6cb
use the variable already exist
před 6 roky
Mark Allen
58016458b7
Merge pull request #478 from travelping/fix/improper_lists
replace list comprehension with recursive invokation in pr/2
před 6 roky
Andreas Schultz
ca40952066
replace list comprehension with recursive invokation in pr/2
The list comprehension fail on improper lists, use a recursive
call into pr/2 instead.
Fixes #477 .
před 6 roky
Rustam Safargalin
370c909ce2
Fix check_hwm
During further testing found one more bug in check_hwm
This fix is an addition to https://github.com/erlang-lager/lager/pull/467
před 6 roky
Andrew Thompson
1249ede5be
Roll 3.6.5
před 6 roky
Andrew Thompson
988e3f2eaf
Merge pull request #473 from erlang-lager/adt/weird-statem-crash
Handle strange crash report from gen_statem
před 6 roky
Andrew Thompson
81b5c61bd0
Enhancements to previous commit: cleanup fd and always keep rotating
před 6 roky
Andrew Thompson
8d7eecda49
Truncate 'base' log file on rotation
Prior to this change, lager would simply rename all the files and leave
the 'base' filename empty until a log event came into create it. This
caused confusion with users and tooling.
The fix, as suggested by Shamis Shukoor, is to not delete/rename the
base file, but simply try to open it in write only mode. This will
create the file if it does not exist and truncate it if it does.
Co-authored-by: Shamis Shukoor <shamis657@gmail.com>
před 6 roky
Mark Allen
7ac1511381
Merge pull request #467 from russagit/master
Prevent silent dropping of messages when hwm is exceeded
před 6 roky
Andrew Thompson
9bfc9bd20f
Handle strange crash report from gen_statem
před 6 roky
Andrew Thompson
8d5751b82c
Merge pull request #472 from shamis/is_loggable_atom
is_loggble - support for severity as atom
před 6 roky
Rustam Safargalin
04a2471657
Add tests for prevent silent dropping
před 6 roky
Rustam Safargalin
9f9b5a3807
Fix lasttime setting
před 6 roky
Shamis Shukoor
6a876827c2
is_loggble - support for severity as atom
před 6 roky
Andrew Thompson
82652f57c0
Fix typo in README
před 6 roky
Mark Allen
a7c20a91fe
Merge pull request #469 from erlang-lager/adt/remote_console
Allow the console backend to redirect output to a remote node
před 6 roky
Andrew Thompson
ca8fa228d4
Cleanups, add tests and docs
před 6 roky
Andrew Thompson
0d3993cbf1
Merge pull request #470 from c-bik/patch-1
Cosmetic Typo
před 6 roky
Bikram Chatterjee
3d24216568
Cosmetic Typo
před 6 roky
Andrew Thompson
43f15fef70
Allow the console backend to redirect output to a remote node
To support tracing to a console that is not the erlang node's *direct*
console introduce 2 additional options to the console backend:
`group_leader` and `id`. Group leader allows to use io:put_chars to send
the console output to a remote pid (eg. the group leader on a node
created by nodetool) and the ID allows multiple console backends to
exist simultaneously (for example {lager_console_backend, NodeName}).
Additionally, to support ephemeral console backends with associated
traces, if the console handler explicitly removes itself from the event
handler, remove any traces for that id.
To facilitate this, a new function has been added to the lager module:
`lager:clear_trace_by_destination/1`.
před 6 roky
Mark Allen
576a1e3164
Merge pull request #468 from GrzegorzW/fix/readme-event-queue-flushing-section
Fix markup - inline code
před 6 roky
GrzegorzW
95dc8dc190
Fix markup - inline code
před 6 roky
Rustam Safargalin
8039e9c484
Prevent silent dropping of messages when hwm is exceeded
před 6 roky
Andrew Thompson
bf60290101
Roll 3.6.4
před 6 roky
Mark Allen
b5f18abab5
Merge pull request #462 from erlang-lager/adt/sys-trace-func
Add a wrapper to allow lager to install a sys trace function
před 6 roky
Andrew Thompson
d21f05bab7
Add documentation and specs for lager:install_trace and lager:remove_trace
před 6 roky
Andrew Thompson
7778aa8992
Merge pull request #461 from HowardStark/master
Fixed platform_define pattern matching
před 6 roky
Howard Stark
701cd90c39
Fixed platform_define pattern matching
před 6 roky
Mark Allen
06f676aad8
Merge pull request #459 from russagit/Fix_issue_458
Fix reinstalling all handlers after killing a sink #458
před 6 roky
Mark Allen
d83a79a6b1
Merge pull request #460 from getong/test_erlang_21.0
test erlang/otp 21.0
před 6 roky
getong
b984b12ec7
test erlang/otp 21.0
před 6 roky
Rustam Safargalin
86e8d0137e
Fix reinstalling all handlers after killing a sink #458
před 6 roky
Andrew Thompson
5cab2d8368
Add a wrapper to allow lager to install a sys trace function
před 6 roky