John R. Daily
5f3f0fee6c
Match the correct tuple. Return an {ok, _} tuple so the next case statement does not get confused
před 10 roky
John R. Daily
fb72c10ff0
Including the config in the handler ID only confuses our ability to detect matches from the handlers list
před 10 roky
John R. Daily
347c9c53b4
Lager STARTS
před 10 roky
John R. Daily
52c753c4f8
More bugfixes
před 10 roky
John R. Daily
a462c046fe
Various bugfixes of various levels of desperation
před 10 roky
John R. Daily
8fae61af12
More config tweaks
před 10 roky
John R. Daily
612dd4e65a
Finish fixing get/set. Got out of the habit of compiling before committing, oops
před 10 roky
John R. Daily
2926dd51a1
get/2 was confusing: Sink, Key or Key, Default. Clean up by forcing into {Sink, Key} tuple
před 10 roky
John R. Daily
ba5548e057
update_loglevel_config now takes a sink argument
před 10 roky
John R. Daily
b724b6bd42
Monads...still do not know what they are but I know I need em
před 10 roky
John R. Daily
b88e95ea42
macro ftw
před 10 roky
John R. Daily
efd3164248
Stupid compiler errors
před 10 roky
John R. Daily
21fd439a6f
Stupid compiler errors
před 10 roky
John R. Daily
53488fcb1a
Trailing commas, my old enemy
před 10 roky
John R. Daily
0ec113132b
Traces now are assigned to a single sink as requested (or lager_event by default)
před 10 roky
John R. Daily
cc7e4d26d4
Start incorporating support for dedicated tracing sink
před 10 roky
John R. Daily
db697bc720
Revert last change: we are not (yet) allowing backends to watch multiple sinks
před 10 roky
John R. Daily
6f6b0110f2
Starting down the path of making backends handle multiple sinks (primary use case is tracing)
před 10 roky
John R. Daily
c0d859441f
Rethink configuration, heavily rework lager_app:start for more modularity
před 10 roky
John R. Daily
a932df0e7d
To make configuration backwards compatible, I think lager_event stays as a special sink, with other sinks able to be added
před 10 roky
John R. Daily
f8cd7ec888
More DEFAULT_SINK
před 10 roky
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.
před 10 roky
John R. Daily
2d33a13415
Clarify that "event" in this module is what we are now calling a "sink"
před 10 roky
John R. Daily
730ab66717
For places in the revised API where we use lager_event as a default value, use a macro instead
před 10 roky
Mark Allen
f6e6b83927
Record some code comments from jrd walk-thru
před 10 roky
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
před 10 roky
Mark Allen
546036f75a
WIP
First pass at adding sink parameter into the external API layer.
TODO:
* config updates
* loglevel changes per sink
před 10 roky
Andrew Thompson
d33ccf3b69
Version 2.1.1
před 10 roky
Andrew Thompson
89cd5df460
Merge tag '2.1.0'
před 10 roky
Andrew Thompson
6f5bfed0a0
Merge pull request #254 from Vagabond/adt-badarg-stacktrace
Improve format_reason for certain oddly formed badarg stacktraces
před 10 roky
Andrew Thompson
f27480c8a7
Fix #252 and add some more tests to the formatter
před 10 roky
Andrew Thompson
927e002922
Merge pull request #219 from basho/jrd-update-readme
Typos, add formatting, rework the semi-iolist description
před 10 roky
John R. Daily
30fbfbfd62
Typos, extra formatting, rework the semi-iolist description
před 11 roky
Andrew Thompson
399db5e386
Merge pull request #246 from lrascao/doc/add_per_module_per_function_example
add per-module per-function trace example
před 10 roky
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
před 10 roky
Andrew Thompson
80663da3b4
Improve format_reason for certain oddly formed badarg stacktraces
před 10 roky
Jon Meredith
b7984d4628
Merge pull request #241 from stolen/log_root
Add optional log_root environment variable
před 10 roky
Andrew Thompson
95f5a133af
Fix #163 - start the file backend if it isn't running but a trace uses it
před 10 roky
Andrew Thompson
b0a5d08227
Fix trace_file to return the new trace return type
před 10 roky
Andrew Thompson
c2b75f0674
Make start_trace return a term that stop_trace/1 can consume
před 10 roky
Jon Meredith
a89e420224
Merge pull request #233 from dvaergiller/color_atom
Mention the color atom for the formatter config
před 10 roky
Jon Meredith
5295fa281d
Merge pull request #227 from derek121/readme-file-config
Fix specification of backend config in log rotation example
před 10 roky
Bishop Bors
022077b1da
Merge pull request #250 from evanmcc/stop-start-suppression
add application stop/start suppression for ct logs
Reviewed-by: seancribbs
před 10 roky
Eric Liang
55fba1e3ba
don't discard notify message which will hang a caller waiting for the response forever
před 10 roky
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.
před 10 roky
Eric Liang
cd36e96fd7
add set_loghwm method in order to change high water mark on the fly
před 10 roky
Eric Liang
1be7d7378f
add high water mark support to lager_file_backend
před 10 roky
Eric Liang
e1a2907d5c
refactor message flow control by encapsulating high water mark in lager_shaper
před 10 roky
Sungjin Park
66e39f21f8
Add lager_manager_killer and tests for it.
před 10 roky
Luis Rascao
9d0bfda1d5
make trace and stop_trace take the same arguments
před 10 roky