Mayorov Andrey
be758ee3f4
Provide means to compress printed record output
Sometimes there are a LOT of records going through logging backends
which contain notable number of empty (i.e. undefined) fields. This
humble patch solemnly introduces new function `lager:pr/3` designed to
help cope with such kind of issues, providing a one and only option `compress`
which, when turned on, effectively eliminates any empty fields in records.
10 yıl önce
John R. Daily
2d33a13415
Clarify that "event" in this module is what we are now calling a "sink"
10 yıl önce
John R. Daily
730ab66717
For places in the revised API where we use lager_event as a default value, use a macro instead
10 yıl önce
Mark Allen
f6e6b83927
Record some code comments from jrd walk-thru
10 yıl önce
Mark Allen
90ce2ac2b9
WIP
Finish lager API modifications
Update config API to handle multiple sinks
Identify areas where new code is yet to be written
10 yıl önce
Mark Allen
546036f75a
WIP
First pass at adding sink parameter into the external API layer.
TODO:
* config updates
* loglevel changes per sink
10 yıl önce
Andrew Thompson
d33ccf3b69
Version 2.1.1
10 yıl önce
Andrew Thompson
89cd5df460
Merge tag '2.1.0'
10 yıl önce
Andrew Thompson
6f5bfed0a0
Merge pull request #254 from Vagabond/adt-badarg-stacktrace
Improve format_reason for certain oddly formed badarg stacktraces
10 yıl önce
Andrew Thompson
f27480c8a7
Fix #252 and add some more tests to the formatter
10 yıl önce
Andrew Thompson
927e002922
Merge pull request #219 from basho/jrd-update-readme
Typos, add formatting, rework the semi-iolist description
10 yıl önce
John R. Daily
30fbfbfd62
Typos, extra formatting, rework the semi-iolist description
11 yıl önce
Andrew Thompson
399db5e386
Merge pull request #246 from lrascao/doc/add_per_module_per_function_example
add per-module per-function trace example
10 yıl önce
Andrew Thompson
2d3ed2e722
Merge pull request #251 from Vagabond/fix/make_trace_stop_trace_api_consistent_cleanup
Fix/make trace stop trace api consistent cleanup
10 yıl önce
Andrew Thompson
80663da3b4
Improve format_reason for certain oddly formed badarg stacktraces
10 yıl önce
Jon Meredith
b7984d4628
Merge pull request #241 from stolen/log_root
Add optional log_root environment variable
10 yıl önce
Andrew Thompson
95f5a133af
Fix #163 - start the file backend if it isn't running but a trace uses it
10 yıl önce
Andrew Thompson
b0a5d08227
Fix trace_file to return the new trace return type
10 yıl önce
Andrew Thompson
c2b75f0674
Make start_trace return a term that stop_trace/1 can consume
10 yıl önce
Jon Meredith
a89e420224
Merge pull request #233 from dvaergiller/color_atom
Mention the color atom for the formatter config
10 yıl önce
Jon Meredith
5295fa281d
Merge pull request #227 from derek121/readme-file-config
Fix specification of backend config in log rotation example
10 yıl önce
Bishop Bors
022077b1da
Merge pull request #250 from evanmcc/stop-start-suppression
add application stop/start suppression for ct logs
Reviewed-by: seancribbs
10 yıl önce
Eric Liang
55fba1e3ba
don't discard notify message which will hang a caller waiting for the response forever
10 yıl önce
Evan Vigil-McClanahan
df3cf16345
add application stop/start suppression for ct logs
in common test, starting and stopping applications can make your logs
very noisy. the patch allows these messages to be suppressed on the
happy path, and raises the high water mark during ct tests so that
messages aren't dropped.
10 yıl önce
Eric Liang
cd36e96fd7
add set_loghwm method in order to change high water mark on the fly
10 yıl önce
Eric Liang
1be7d7378f
add high water mark support to lager_file_backend
10 yıl önce
Eric Liang
e1a2907d5c
refactor message flow control by encapsulating high water mark in lager_shaper
10 yıl önce
Luis Rascao
9d0bfda1d5
make trace and stop_trace take the same arguments
10 yıl önce
Luis Rascao
474516c95d
add per-module per-function trace example
10 yıl önce
Jon Meredith
e88c9160ae
Merge pull request #244 from joedevivo/master
needs log level explicitly set
10 yıl önce
Joe DeVivo
109aa6b605
needs log level explicitly set
10 yıl önce
Danil Zagoskin
e0a7d02815
mention log_root variable in README.md
10 yıl önce
Danil Zagoskin
78d80bdddd
implement log_dir option handling
10 yıl önce
Bishop Bors
4bb4634804
Merge pull request #240 from joedevivo/master
removed other handlers for common test bounces
Reviewed-by: seancribbs
10 yıl önce
Joe DeVivo
dd792c8e0c
removed other handlers for common test bounces
10 yıl önce
Jon Meredith
840acab51e
Bumped version to 2.1.0 to reflect map support and other fixes.
10 yıl önce
Jon Meredith
2ced8a69cf
Merge pull request #236 from fishcakez/maps
Add maps support
10 yıl önce
Jon Meredith
1487f4f80b
Merge pull request #237 from fishcakez/ct_backend_dialyzer
Fix ct backend dialyzer warnings
10 yıl önce
James Fish
cd76e0fff0
Update tools.mk
10 yıl önce
James Fish
8685853c91
Add maps formatting
Note that compiling on OTP 17.0, or later, will produce beam files
(specifically lager_trunc_io) that are incompatible with R16B03-1, or
earlier, due to erlang:is_map/1 using a new beam opcode (156). However
if compiled on R16B03-1, or earlier, will produce beams files that are
compatible with 17.0, and later, and maps will be formatted where
supported by the active OTP release.
10 yıl önce
James Fish
d051396112
Fix ct backend dialyzer warnings
* Fix unmatched return
* Fix set_loglevel call to store mask in state
* Add common_test to plt for ct:pal spec
10 yıl önce
James Fish
2ce67d5d53
Fix line numbers detection in tests for OTP >= 17
10 yıl önce
Mattias Jansson
f433da014b
Mention the color atom for the formatter config
10 yıl önce
Derek Brown
9ec3499e9b
Fix specification of backend config in log rotation example
The example in "Internal log rotation" includes the tuple
{name, "error.log"}
This apparently should be
{file, "error.log"}
as seen in other config examples in README.md.
10 yıl önce
Jared Morrow
dd267603e9
Merge pull request #224 from joedevivo/master
lager_common_test_backend
10 yıl önce
Joe DeVivo
d29d6c7062
cleaned up lager_common_test_backend:bounce for log level
10 yıl önce
Joe DeVivo
28239b887e
Removed 1.X support
10 yıl önce
Joe DeVivo
d7f60e2c72
@doc for lager_common_test_backend
10 yıl önce
Joe DeVivo
1b8acdb05b
lager_backend for use with common_test
10 yıl önce
Andrew Thompson
4d8291edb7
Merge pull request #216 from fogfish/master
fix issue #215 : lager.app env overwrites default handlers
11 yıl önce