Andrew Thompson
a192bd9e91
Replace mochiglobal with a public ETS table
This also removes the dependency on the syntax_tools and compiler
applications, which interfered with lager's startup/shutdown order.
il y a 12 ans
Andrew Thompson
e04830b382
Tag lager_msg messages with a {log, ...} tuple
Helps with pattern matching.
il y a 12 ans
Andrew Thompson
180e09fd01
Use an opaque type with a module for accessors rather than a record
I didn't want the lager_log_message record being used across application
boundaries, this will insulate other applications from any changes to
the message type's internal structure.
il y a 12 ans
Andrew Thompson
12a784b18e
Time makes fools of us all
il y a 12 ans
Andrew Thompson
55283cc2c2
Make the default truncation limit a macro
il y a 12 ans
Andrew Thompson
05718792ae
Whitespace cleanups
il y a 13 ans
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.
il y a 13 ans
Andrew Thompson
d28e7c5f19
Initial attempt at a trace API, and a status() command
il y a 13 ans
Andrew Thompson
121c4c5241
Initial implementation of 'tracing'
il y a 13 ans
Andrew Thompson
d828c35f12
Fixup the tests after merging in the rotation code
il y a 13 ans
Andrew Thompson
116ee8d890
Try to preserve internal log messages generated before lager boots
If backends have a failure or something, don't discard the messages,
wait half a second and then try sending them again.
il y a 13 ans
Andrew Thompson
3fe861c348
Lots of tests for the file backend
il y a 13 ans
Andrew Thompson
ec61e88d8a
Make the dialyzer happy.
il y a 14 ans
Andrew Thompson
077f218cd9
Make logging not crash when lager is not running
il y a 14 ans
Andrew Thompson
5394a7d3fd
Add lager.hrl
il y a 14 ans