Andrew Thompson
bc338b22e9
Fix dialyzer warnings
13 년 전
Andrew Thompson
7b05164249
Change the default formatter to be backwards compatible with old behaviour
Had to add a pseudo-ternary operator to the formatter to support this.
Also allowed lager:log to log metadata.
13 년 전
Jason Wagner
0415d21669
Changed the messages sent to the backends to include metadata and separated formatting from the backend. Added documentation, fixed tests, and removed some unused code.
13 년 전
Devin Torres
80a0e9f5c1
Add support for a custom log truncation size compile time flag
13 년 전
Andrew Thompson
7815a88c55
Fix the Fix for the Fix for #49 , thanks to Kostis for keeping me honest
13 년 전
Andrew Thompson
bf0a19cc14
Fix #49 some more, thanks awesometown for the heads up
13 년 전
Andrew Thompson
f4ebe1fc96
Fix #49 , badmatch in trace_file/3
13 년 전
Andrew Thompson
efc7b7591b
Changes suggested by Kostis, Dialyzer -Wunmatched_returns and Tidier
13 년 전
Jason Wagner
2f9b7936d6
Moved a lot of the AST in lager_transform into a function to make things easier to read and modify
Additional changes and formatting by Andrew Thompson
13 년 전
Andrew Thompson
c619263486
Cleanup unused handlers when a trace is removed, documentation
13 년 전
Andrew Thompson
96e9f6eaae
Add a function for removing an active trace
13 년 전
Andrew Thompson
bd9b66afbb
Don't allow a trace to be installed twice
13 년 전
Andrew Thompson
0e70e68841
Add documentation & function to clear all traces
13 년 전
Andrew Thompson
e3e8c80a04
Fix loglevel changes for files, now they've been refactored
13 년 전
Andrew Thompson
ac8fb192b1
Implement console tracing, don't generate duplicate messages
13 년 전
Andrew Thompson
d28e7c5f19
Initial attempt at a trace API, and a status() command
13 년 전
Andrew Thompson
121c4c5241
Initial implementation of 'tracing'
13 년 전
Andrew Thompson
3311702a6d
Add builtin chomping to lager_format
13 년 전
Scott Lystig Fritchie
cf51ba06d3
Rename format_string_chop() -> safe_format_chop(), add -export
13 년 전
Scott Lystig Fritchie
eea29bece1
Rework using safe_format() from one of Andrew's branches
13 년 전
Scott Lystig Fritchie
9a6aff40a7
Add lager:log() message size truncation
Use lager_trunc_io:format() for all messages submitted via
lager:log(). Also, refactor list flattening and final newline
stripping into shared func that uses re:replace() to do both.
13 년 전
Andrew Thompson
052b639c0c
Wrap to 80 columns
IBM punchcards rejoice! Basho supports your right to continue to affect
how we format source code :)
13 년 전
Andrew Thompson
5fe8f7c2ad
Pids are sometimes not pids, print them more safely
13 년 전
Andrew Thompson
40b0e2d484
Record milliseconds with timestamps, make console less verbose by default
az558
14 년 전
Andrew Thompson
dfa91d8b38
Add a function for printing POSIX error codes as messages
14 년 전
Andrew Thompson
ec61e88d8a
Make the dialyzer happy.
14 년 전
Andrew Thompson
077f218cd9
Make logging not crash when lager is not running
14 년 전
Andrew Thompson
3e3bed6fae
Set gen_event:call timeout to infinity.
14 년 전
Andrew Thompson
d588edcb66
Suppress trailing newlines on log messages
14 년 전
Andrew Thompson
886d410eb9
Make highest log level be 0; add some helper macros
14 년 전
Andrew Thompson
862a9cb46c
Documentation!
14 년 전
Andrew Thompson
a6cbc19712
Rework supervisor tree to be more sane
14 년 전
Andrew Thompson
fed110379e
Add a crash.log logger, based on riak_err, that logs error reports in more detail
14 년 전
Andrew Thompson
0859c90b06
Default the error_logger redirect to be on, log to the 'log' dir
14 년 전
Andrew Thompson
10153cff92
Optimize list construction, somewhat
14 년 전
Andrew Thompson
a1fe3f4496
Remove riak_err as a dep; fix some warnings
14 년 전
Andrew Thompson
1f3493df12
Restart error_logger handler if it exits, cleanups
14 년 전
Andrew Thompson
b7a56487e5
A bunch more work on the error_logger interop
14 년 전
Andrew Thompson
04792f1b8a
Initial version of error_logger->lager translator
14 년 전
Andrew Thompson
d19d927da6
Use sync_notify, its faster
14 년 전
Andrew Thompson
761642eddb
Add ability to adjust loglevel per handler at runtime
14 년 전
Andrew Thompson
75a5088676
Make the file backend clean up on terminate
14 년 전
Andrew Thompson
7bcf044f1a
Initial import
14 년 전