Andrew Thompson
81b5c61bd0
Enhancements to previous commit: cleanup fd and always keep rotating
пре 6 година
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>
пре 6 година
Mark Allen
7ac1511381
Merge pull request #467 from russagit/master
Prevent silent dropping of messages when hwm is exceeded
пре 6 година
Andrew Thompson
8d5751b82c
Merge pull request #472 from shamis/is_loggable_atom
is_loggble - support for severity as atom
пре 6 година
Rustam Safargalin
04a2471657
Add tests for prevent silent dropping
пре 6 година
Rustam Safargalin
9f9b5a3807
Fix lasttime setting
пре 6 година
Shamis Shukoor
6a876827c2
is_loggble - support for severity as atom
пре 6 година
Andrew Thompson
82652f57c0
Fix typo in README
пре 6 година
Mark Allen
a7c20a91fe
Merge pull request #469 from erlang-lager/adt/remote_console
Allow the console backend to redirect output to a remote node
пре 6 година
Andrew Thompson
ca8fa228d4
Cleanups, add tests and docs
пре 6 година
Andrew Thompson
0d3993cbf1
Merge pull request #470 from c-bik/patch-1
Cosmetic Typo
пре 6 година
Bikram Chatterjee
3d24216568
Cosmetic Typo
пре 6 година
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`.
пре 6 година
Mark Allen
576a1e3164
Merge pull request #468 from GrzegorzW/fix/readme-event-queue-flushing-section
Fix markup - inline code
пре 6 година
GrzegorzW
95dc8dc190
Fix markup - inline code
пре 6 година
Rustam Safargalin
8039e9c484
Prevent silent dropping of messages when hwm is exceeded
пре 6 година
Andrew Thompson
bf60290101
Roll 3.6.4
пре 6 година
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
пре 6 година
Andrew Thompson
d21f05bab7
Add documentation and specs for lager:install_trace and lager:remove_trace
пре 6 година
Andrew Thompson
7778aa8992
Merge pull request #461 from HowardStark/master
Fixed platform_define pattern matching
пре 6 година
Howard Stark
701cd90c39
Fixed platform_define pattern matching
пре 6 година
Mark Allen
06f676aad8
Merge pull request #459 from russagit/Fix_issue_458
Fix reinstalling all handlers after killing a sink #458
пре 6 година
Mark Allen
d83a79a6b1
Merge pull request #460 from getong/test_erlang_21.0
test erlang/otp 21.0
пре 6 година
getong
b984b12ec7
test erlang/otp 21.0
пре 6 година
Rustam Safargalin
86e8d0137e
Fix reinstalling all handlers after killing a sink #458
пре 6 година
Andrew Thompson
5cab2d8368
Add a wrapper to allow lager to install a sys trace function
пре 6 година
Andrew Thompson
222293143f
Roll 3.6.3
пре 7 година
Andrew Thompson
f92d43021f
Merge pull request #456 from erlang-lager/adt/otp-21
OTP 21 support
пре 7 година
Andrew Thompson
e372f45261
Add OTP 21.0 RC2 to the travis testing temporarily
пре 7 година
Andrew Thompson
05bc579028
OTP 21 support
To support OTP 21 we manually start error_logger if it is not present
(and lager is configured to install an error_logger handler) and we add
error_logger as a logger handler.
Longer term we should switch to installing our own logger handler, but
that is a larger task as we'd have to redo all the event parsing, if
that is even possible.
пре 7 година
Andrew Thompson
d0a9db3b7a
Roll 3.6.2
пре 7 година
Mark Allen
0f30212e1b
Merge pull request #449 from IgorKarymov/master
Bugfix. flush_threshold not working.
пре 7 година
Igor Karymov
43d304038e
Bugfix. flush_threshold not working.
Fix incorrect option name validation.
пре 7 година
Andrew Thompson
9a7ab5ebed
Merge pull request #447 from erlang-lager/node_formatter
Add `node` as a formatting option
пре 7 година
Mark Allen
ebf74afbf0
Add `node` as a formatting option
Closes #309 . This will enable the use of `node`
in log formatting. It uses the value of the node()
function via atom_to_list/1 to output a value.
There is a simple test case.
пре 7 година
Mark Allen
144cece24c
Merge pull request #446 from surik/using_with_elixir
Update Elixir section with information about parse_transform
пре 7 година
Yury Gargay
1efc38c70a
Update Elixir section with information about parse_transform
According to the official changelog for elixir 1.5 parse_transform is
deprecated since this version. See
https://github.com/elixir-lang/elixir/blob/v1.5/CHANGELOG.md#4-deprecations
пре 7 година
Mark Allen
5558a73304
Merge pull request #445 from getong/change_default_console_configuration
use "[{level,info}]" instead
пре 7 година
getong
c9bf9e8ac6
use "[{level,info}]" instead
пре 7 година
Mark Allen
f369835b65
Merge pull request #442 from shino/pretty-print-list
Pretty print lists of records at top level and field values
пре 7 година
Mark Allen
97dc81add9
Merge pull request #441 from bullno1/master
Ignore return value of lager:dispatch_log in lager.hrl
пре 7 година
Shunichi Shinohara
a430820d8f
Pretty print list of records and list values in fields
пре 7 година
Shunichi Shinohara
4850ddefa5
Rename pr test suite
пре 7 година
Bach Le
c38dc5ae0a
Ignore return value of lager:dispatch_log in lager.hrl
This is to suppress dialyzer's `unmatched_return` warning
пре 7 година
Andrew Thompson
ff7ae90b26
Fix edoc
пре 7 година
Andrew Thompson
6cc6b125ad
Roll 3.6.1
пре 7 година
Mark Allen
58812d0b49
Merge pull request #440 from erlang-lager/adt/dont-log-0-drops
Don't log when we dropped 0 messages
пре 7 година
Andrew Thompson
ef862220a8
Don't log when we dropped 0 messages
пре 7 година
Andrew Thompson
ff134d4046
Merge pull request #439 from aeternity/uw-flush-bugfix
add flush options to proplist validation
пре 7 година
Ulf Wiger
295d6031ed
add flush options to proplist validation
пре 7 година