Marc Worrell
e133ca4992
Replaced another use of element(2,Pid). Added some tests with somepid instead {local,name} as supervisor reference
12 yıl önce
Andrew Thompson
2bb8feb6b0
Fiddle with test timeouts to accomodate slower machines
12 yıl önce
Andrew Thompson
0ec0d9055b
Also allow list comps, function calls and record fields as lager arguments
12 yıl önce
Andrew Thompson
95fdf935b9
Support variables as arguments to lager:info and friends
As long as *one* of the arguments is a literal, lager can figure out
what you're trying to do and (re)arrange the arguments as necessary.
12 yıl önce
Andrew Thompson
932b482e4a
Support printing iolists with ~s
12 yıl önce
Andrew Thompson
069e553f1d
Fix a couple bugs in tracing
12 yıl önce
Andrew Thompson
f566318bdc
Add some more record printing tests and fix a bug
12 yıl önce
Andrew Thompson
9bd0a411a3
Support pretty printing records found in a module at compile time
12 yıl önce
Andrew Thompson
f4f3dd3817
Rewrite to use a bitmask to represent active loglevels
Also, adapt the rest of lager to use this bitmask as well.
12 yıl önce
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.
12 yıl önce
Andrew Thompson
e04830b382
Tag lager_msg messages with a {log, ...} tuple
Helps with pattern matching.
12 yıl önce
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 yıl önce
Andrew Thompson
12a784b18e
Time makes fools of us all
12 yıl önce
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 yıl önce
Andrew Thompson
e07c0481ac
One function doesn't make a module
12 yıl önce
Andrew Thompson
05718792ae
Whitespace cleanups
13 yıl önce
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 yıl önce
Andrew Thompson
d3cff8c6d7
R14B support for ucaught throws
13 yıl önce
Andrew Thompson
fad809bed4
Handle uncaught throws in a gen_* process better
13 yıl önce
Andrew Thompson
0a3d64f078
Better error handling for 'special processes'
13 yıl önce
Andrew Thompson
62bb41fd35
Add support for badrecord errors
13 yıl önce
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 yıl önce
Andrew Thompson
807a847638
Fix tests. and 2 places MFAs werent handling the new 4th parameter
Tests now pass on both R15B and R14B03.
13 yıl önce
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 yıl önce
Andrew Thompson
c21f1bdd9b
Better crash reports for processes started via proc_lib, Fixes #31
13 yıl önce
Andrew Thompson
16fb55890c
Correct printing of strings in mixed error reports (reported by Bryan Hughes)
Since the lager_format rewrite, ~p and ~w now have different behaviour
with regard to printing lists as strings.
13 yıl önce
Andrew Thompson
5068e29383
Fix a couple minor issues with length calculation, add tests
13 yıl önce
Andrew Thompson
f459624b8d
Fix EQC test to work with floats and padding
13 yıl önce
Andrew Thompson
121c4c5241
Initial implementation of 'tracing'
13 yıl önce
Andrew Thompson
de5d84e349
Fix how the name/pid of the process is printed in crash reports
Before this fix, the code assumed that processes without a registered
name omitted the {registered_name, X} tuple in the crash report. In
actual fact, process_info/2 returns [] when the process has no
registered name, so unregistered processes were being printed with a
"name" of "[]". This corrects the code to print the Pid in this case
instead.
13 yıl önce
Andrew Thompson
4dfee06cd9
Make tests less dependant on timer:sleeps to function correctly
13 yıl önce
Andrew Thompson
53d5de448c
Fix term printing in errors to properly show embedded lists
The ~w formatting used before was not printing lists embedded in other
terms. This change uses trunc_io to print those terms safely and without
potentially introducing linebreaks (like ~p would)
13 yıl önce
Andrew Thompson
0cc9e25224
Remove incorrect test case
13 yıl önce
Scott Lystig Fritchie
042e210a9d
Remove application:unload() calls from test code
13 yıl önce
Scott Lystig Fritchie
83c2a412ab
Mash in the remainder of adt-error-format-protection branch
13 yıl önce
Andrew Thompson
d828c35f12
Fixup the tests after merging in the rotation code
13 yıl önce
Scott Lystig Fritchie
4872b82885
Move EUnit sleep & sync stuff to new custom_sleep() func
13 yıl önce
Andrew Thompson
bf5861a548
Tests for the crash log
13 yıl önce
Andrew Thompson
3fe861c348
Lots of tests for the file backend
13 yıl önce
Scott Lystig Fritchie
4148670b18
Fix sporadic EUnit test failures: try to sync via gen_event:which_handlers(), increase some sleep times
13 yıl önce
Andrew Thompson
40b0e2d484
Record milliseconds with timestamps, make console less verbose by default
az558
13 yıl önce
Andrew Thompson
0d3e45a39e
Plug some large error_logger message holes with trunc_io
13 yıl önce
Andrew Thompson
d0338f11a8
Use format_reason in supervisor child exit messages, too
13 yıl önce
Andrew Thompson
157d676562
Handle ETS table count system limit
13 yıl önce
Andrew Thompson
077f218cd9
Make logging not crash when lager is not running
14 yıl önce
Andrew Thompson
675006ec86
Make tests quiet
14 yıl önce
Andrew Thompson
474bfc9e36
Fix failing test
14 yıl önce
Andrew Thompson
eb68bc17fa
Fixed comments
14 yıl önce
Andrew Thompson
4ac01374fa
Rename trunc_io to lager_trunc_io to prevent clashes
14 yıl önce
Andrew Thompson
d230cbaa02
More fixes found by QC and some QC improvements
14 yıl önce