snaky
6d7d1cc11d
Specify node in the default formatter
12 lat temu
Andrew Thompson
d648264942
Pid can sometimes be 'emulator', turns out
12 lat temu
Andrew Thompson
ed7e2aac35
Test and fix for a printable yet improper list
12 lat temu
Magnus Henoch
0fda333cbf
Use -include instead of -include_lib
As the include file is located in the same application, using
-include instead of -include_lib removes the need for the
code directory to be called "lager" or "lager-VSN".
12 lat temu
serge
3a7b235866
Added more test cases
12 lat temu
serge
f52558b558
Performance improvement in date formatting function.
The micro-benchmarks show up to 20x improvement, which further
reduces logging overhead.
12 lat temu
Andrew Thompson
d8ad5eb64a
Roll version 1.2.1
12 lat temu
Andrew Thompson
e04830b382
Tag lager_msg messages with a {log, ...} tuple
Helps with pattern matching.
12 lat temu
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.
12 lat temu
Andrew Thompson
12a784b18e
Time makes fools of us all
12 lat temu
Andrew Thompson
55283cc2c2
Make the default truncation limit a macro
12 lat temu
Andrew Thompson
35872409bc
Use quickcheck to test for formatting equivalenve with io_lib
Various bugs uncovered during this testing were fixed and added to the
test suite.
12 lat temu
Andrew Thompson
e07c0481ac
One function doesn't make a module
12 lat temu
Andrew Thompson
277dafa9ad
Adjust documentation
12 lat temu
Andrew Thompson
bc338b22e9
Fix dialyzer warnings
13 lat temu
Andrew Thompson
cf4b3dcba9
Licencing headers
13 lat temu
Andrew Thompson
05718792ae
Whitespace cleanups
13 lat temu
Andrew Thompson
82eda718f2
Update the console backend to use new default formatter for verbose mode
13 lat temu
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 lat temu
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 lat temu
thomasc
938d351969
Restore user process registration to it's original value in the console logger tests
12 lat temu
thomasc
f9e36ed5c2
Direct the console logger output to user
12 lat temu
Joe DeVivo
9f22054f92
Added CRs to the LFs in lager_console_backend
12 lat temu
Micah Warren
7af0b9c94e
Added test for very short field width on ~s
12 lat temu
Micah Warren
0b16d5ebcd
Fixed unused vars warnings
Also removed commented out code.
12 lat temu
Micah Warren
06103bbf9a
Quick fix for issue#64
There are still differences between the erlang io_lib and the trunc_io in
how ~p/~P are handled, but a first step is useful here.
12 lat temu
Jared Morrow
0e1947e90e
Roll version 1.2.0
13 lat temu
Andrew Thompson
d3cff8c6d7
R14B support for ucaught throws
13 lat temu
Andrew Thompson
fad809bed4
Handle uncaught throws in a gen_* process better
13 lat temu
Devin Torres
80a0e9f5c1
Add support for a custom log truncation size compile time flag
13 lat temu
Andrew Thompson
f5ca930b2e
Vertical tab support
13 lat temu
Andrew Thompson
d416dc0a20
Fix escaped char printing in ~p mode, reported by @etrepum
13 lat temu
Andrew Thompson
0a3d64f078
Better error handling for 'special processes'
13 lat temu
Andrew Thompson
7815a88c55
Fix the Fix for the Fix for #49 , thanks to Kostis for keeping me honest
13 lat temu
Andrew Thompson
bf0a19cc14
Fix #49 some more, thanks awesometown for the heads up
13 lat temu
Andrew Thompson
f4ebe1fc96
Fix #49 , badmatch in trace_file/3
13 lat temu
Andrew Thompson
62bb41fd35
Add support for badrecord errors
13 lat temu
Andrew Thompson
b52e204f24
Don't bother printing the filename in error messages, it is always redundant
Whenever we have the filename we ALWAYS have the module name, which is
effectively just as useful and already printed.
13 lat temu
Andrew Thompson
d68f4d855f
Add support for bad_return errors from application start
13 lat temu
Andrew Thompson
807a847638
Fix tests. and 2 places MFAs werent handling the new 4th parameter
Tests now pass on both R15B and R14B03.
13 lat temu
Andrew Thompson
68065c166b
Intial support for R15 line numbers in errors
13 lat temu
Andrew Thompson
efc7b7591b
Changes suggested by Kostis, Dialyzer -Wunmatched_returns and Tidier
13 lat temu
Andrew Thompson
b504747037
Simplify internal function because it is never passed a deep list
Thanks for Kostis for helping me figure this one out
13 lat temu
Kostis Sagonas
e9c4d77bea
Fix specs so that they correspond to the code
13 lat temu
Andrew Thompson
caad1f8c83
Fix eunit tests to "start" compiler and syntax_tools
This is just silly busy-work since they're library applications, but
whatever.
13 lat temu
Benjamin Nortier
76fef99623
Add compiler and syntax_tools as dependencies in the application resource file for correct releases using Reltool.
13 lat temu
Jared Morrow
09ecad6737
Roll version 1.0.0
13 lat temu
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 lat temu
Andrew Thompson
79b8fd1b05
Don't break printing lists of binaries
13 lat temu
Andrew Thompson
6b7f1dd4a3
Support for printing bitstrings (reported by @freeaakk )
Bitstrings are binaries that don't end on an 8 bit boundary, so dealing
with the trailing bits is annoying. Thanks to the bit_size bif we don't
have to resort to io_lib for printing them.
13 lat temu