Andrew Thompson
8591d1f154
Merge pull request #21 from basho/adt-fix-github-issue-20
Fix issue #20
před 13 roky
Andrew Thompson
5140cb3449
Don't convert \r, etc to spaces, don't assume printablility by first char
před 13 roky
Jared Morrow
8427d06cb7
Roll version 0.9.2
před 13 roky
Andrew Thompson
5270d36b44
Merge pull request #19 from basho/adt-test-less-dependant-on-timer
Make the tests less dependant on timer:sleep()
před 13 roky
Andrew Thompson
b61718ff80
Make the call to the crash log synchronous only when testing
před 13 roky
Andrew Thompson
4dfee06cd9
Make tests less dependant on timer:sleeps to function correctly
před 13 roky
Jared Morrow
80f5ffbe04
Version roll 0.9.1
před 13 roky
Jared Morrow
7bccda5697
Update rebar version: 2 date: 20110907_012454 vcs: git 1cb1ae2
před 13 roky
Andrew Thompson
8d5e5db9f1
Merge pull request #18 from basho/djr-set_loglevel-typo
Fix typo in README
před 13 roky
Daniel Reverri
5793dfea75
Fix typo in README
před 13 roky
Andrew Thompson
445a546391
Merge pull request #17 from basho/adt-fix-binary-printing
Several fixes for printing binaries, improve quote stripping
před 13 roky
Andrew Thompson
7e9da648db
Several fixes for printing binaries, improve quote stripping
In string mode, "..", '..' and <<"..">> are stripped, just like with
io:format.
před 13 roky
Andrew Thompson
28a5c9ecd8
Merge pull request #13 from basho/adt-fix-term-printing
Fix term printing in errors to properly show embedded lists
před 13 roky
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)
před 13 roky
Andrew Thompson
4cfa3ee400
Merge pull request #12 from basho/adt-fix-print-bugs
Adt fix print bugs
před 13 roky
Andrew Thompson
0cc9e25224
Remove incorrect test case
před 13 roky
Andrew Thompson
af4ea7f31d
Don't treat floats in a list as printable characters Reported by @bryanhughes
The test if an element in a list was in the printable range didn't
handle the case of a float in the list that compared to be in the
printable range.
před 13 roky
Andrew Thompson
a0440a9d60
Smarter doublequote stripping when printing strings with ~s
před 13 roky
Andrew Thompson
dadd0cf53f
Merge pull request #10 from basho/adt-better-float-printing
Use the io_lib_format:fwrite_g function to print floats
před 13 roky
Andrew Thompson
9a577df2e0
Use the io_lib_format:fwrite_g function to print floats
This is superior to float_to_list as it only prints the meaningful
digits and 1.0 isn't rendered as "1.00000000000000000000e+00".
před 13 roky
Andrew Thompson
3babca112c
Make sure atoms needing quoting are quoted.
před 13 roky
Scott Lystig Fritchie
042e210a9d
Remove application:unload() calls from test code
před 13 roky
Scott Lystig Fritchie
e13bc3d9ee
Merge branch 'slf-log-msg-truncation'
před 13 roky
Scott Lystig Fritchie
83c2a412ab
Mash in the remainder of adt-error-format-protection branch
před 13 roky
Scott Lystig Fritchie
cf51ba06d3
Rename format_string_chop() -> safe_format_chop(), add -export
před 13 roky
Scott Lystig Fritchie
eea29bece1
Rework using safe_format() from one of Andrew's branches
před 13 roky
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.
před 13 roky
Andrew Thompson
f85ea9eb88
Add note on syslog backend
před 13 roky
Andrew Thompson
3110039738
Merge branch 'adt-improve-test-coverage'
před 13 roky
Andrew Thompson
95f87e5d8b
Remove unecessary and pointless call to lists:flatten
před 13 roky
Andrew Thompson
0cbc95b810
Merge pull request #7 from muxspace/master
Fixed syntax error w.r.t. configuration example
před 13 roky
Andrew Thompson
19f2339458
Make console backend more robust against bad configuration
před 13 roky
Andrew Thompson
cc371c9683
Test also calls compile
před 13 roky
Andrew Thompson
d828c35f12
Fixup the tests after merging in the rotation code
před 13 roky
Scott Lystig Fritchie
4872b82885
Move EUnit sleep & sync stuff to new custom_sleep() func
před 13 roky
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.
před 13 roky
Andrew Thompson
03d3fa1a95
Fixes and tests for deep-list handling in trunc_io:format
This solves an issue reported by 'cloudhead' in IRC where deep lists
weren't being flattened when printed with format specifiers like ~s ~p
and ~P, all of which should flatten the list.
před 13 roky
Andrew Thompson
cde3eecf1a
Tests for the gen_event handler watcher
před 13 roky
Andrew Thompson
bf5861a548
Tests for the crash log
před 13 roky
Andrew Thompson
bff8eb1162
Console backend tests
před 13 roky
Andrew Thompson
3fe861c348
Lots of tests for the file backend
před 13 roky
Andrew Thompson
bc668852d1
Merge pull request #1 from basho/adt-add-simple-rotation
Adt add simple rotation
před 13 roky
Andrew Thompson
55e0cc1f5a
schedule_rotation returns undefined when no rotation scheduled
před 13 roky
Andrew Thompson
052b639c0c
Wrap to 80 columns
IBM punchcards rejoice! Basho supports your right to continue to affect
how we format source code :)
před 13 roky
Andrew Thompson
874b76982b
Simple test for logfile rotation
před 13 roky
Andrew Thompson
b2d9d06abd
Cleanup logfile option validation, as suggested by @jtuple
před 13 roky
Andrew Thompson
7d8c104bfc
Update app.src file with time based rotation config
před 13 roky
Andrew Thompson
81d4aea7d8
Finish implementing time based log rotation
před 13 roky
Andrew Thompson
dc15d9272e
Initial work on time based rotation
Adding date spec parsing and calculation of when a spec indicates a file
next needs to be rotated.
před 13 roky
Andrew Thompson
6eb8240f1a
Crash log rotation & documentation on rotation
před 13 roky