John R. Daily
81222ca486
More get_env cleanup
преди 9 години
John R. Daily
09610138fe
Tweak to be a bit more efficient
преди 9 години
John R. Daily
968d879148
Leverage existing lager_app:get_env wrapper for error_logger_lager_h
преди 9 години
John R. Daily
6d8cd800f9
Address #332 . The `stdlib` module `supervisor` reports the child name as `id` now vs `name` previously
преди 9 години
Andrew Thompson
23e7bc085d
Port improper iolist support from io_lib_format.erl & add tests
преди 9 години
Mark Allen
b2cb273571
Release 3.1.0
преди 9 години
Mark Allen
c7737da3a1
Release 3.0.3
преди 9 години
Mark Allen
eb249f8172
Do not add logroot in expand_path sometimes
If expand_path/1 already contains LogRoot in its RelPath, do not
add it again.
преди 9 години
Daniil Fedotov
c278368a65
Replace API for file rotation. Now supports rotate_handler/1,2 to rotate custom handler
преди 9 години
Mark Allen
063d628549
Dialyzer insists on matching a return value
преди 9 години
Mark Allen
cb5114fbc3
Delete trace from the global handler list too
преди 9 години
Daniil Fedotov
962eb2c1d7
Rotate as gen_event:call
преди 9 години
Jean-Sébastien Pédron
31a5fc5b13
lager_file_backend: Close file after time-based rotation
Before, the old file was still being used until the next
`check_interval`, where the file was recreated and reopened.
преди 9 години
Daniil Fedotov
af3a2d79c4
API to explicitly call log rotation
преди 9 години
Daniil Fedotov
f9b38c5850
error_logger_format_raw added to module state
преди 9 години
Daniil Fedotov
edcf7f4992
No default config for reformatting error_logger messages
преди 9 години
Daniil Fedotov
4b9b21ce64
Valid case statement
преди 9 години
Daniil Fedotov
75e827a1bf
Application env error_logger_format_raw to not reformat error_logger messages
преди 9 години
Mark Allen
66869e2d63
Start traces after extra sinks are started
Previously, if you configured a trace to use an
extra sink, you'd get a noproc error. Addresses
issue #296 on github.
преди 9 години
Daniil Fedotov
146b0461fd
Tests and SHOULD_LOG fix
преди 9 години
Daniil Fedotov
2248a2aad1
Support for separate sing for error_logger messages
преди 9 години
Mark Allen
6452db6388
Forward port #292 to 3.x branch
255 is a valid ISO-8859-1 character. This was fixed
on 2.x by #292 . Forward port the fix into 3.x.
преди 9 години
Alexander Verbitsky
aef8b9a9f4
Rewriting of function for printing stacktrace in human readable form with using 'format_mfa'
преди 9 години
Alexander Verbitsky
030309e8f1
Backward compatibility for old OTP versions
преди 9 години
Alexander Verbitsky
93f1c95894
Function for printing stacktrace in human readable form
преди 9 години
Mark Allen
599dda6786
Roll 3.0.2
* Add formatting options to align text differently if desired
* Fix some typos in comments and docs
* Optionally print all metadata
* Fix R15 compatibility
преди 9 години
sag
36701dba58
fix: string:right is arity 2, test for bad args
преди 9 години
sag
55108be9f2
fix: the word width is misspelled in all of the test cases
преди 9 години
sag
69feaad151
Add option to format output with Width param (Width | {left|center|right,Width})
ex:[{pid, ["123456:", pid], ["Unknown Pid"], {right, 10}}] -> if pid is in the metadata print " 123456: <?.?.?>", otherwise print "nknown Pid"
placeholders: date, time, message, sev, metadata and new placeholder blank(blank | {blank, Fill} ignore width param
преди 9 години
Lee GiTack
8b16d41201
Fix several typos
преди 9 години
Andrew Thompson
8438687757
Add option to print all metadata in the default formatter
Metadata can be printed with standard or custom internal seperators ad field
seperators. The defaults are "=" and " ":
"key1=value1 key2=value2"
преди 9 години
John R. Daily
2f7f7b7dde
application:get_env/3 has different semantics than get_env/2
преди 9 години
John R. Daily
6e2d97389c
Handle lack of get_env/3 within R15
преди 9 години
Mark Allen
cbf6679c6a
Roll 3.0.1
преди 9 години
John R. Daily
13d4db235d
Intercept error_logger as pseudo-sink before getting deeper into loglevel code
преди 9 години
Mark Allen
20edd1519a
Make sink name construction common & test
Based on code review comments put this function into util.
Added a couple simple unit tests for sanity checking purposes.
преди 9 години
Mark Allen
25b700d930
{ok, exists} is accounted for in the code path
Removed comment
преди 9 години
Mark Allen
d7cd9fc36d
Rename list_all_sinks
преди 9 години
Mark Allen
7f92811696
Use '_lager_event' for sinks
During code review we decided that using Sink ++ '_lager_event'
would provide better isolation for gen_event names than
Sink ++ '_event' as we had been using up to this point.
For example a sink called 'audit' is now 'audit_lager_event'
than 'audit_event' which might clash with a user's predefined
own module or process name.
преди 9 години
Mark Allen
5bcdadeccb
Add log_unsafe/4
преди 9 години
Mark Allen
e0abc34a32
Remove testing crutch
преди 9 години
Mark Allen
6a458a4280
Make 'dynamic' conform to OTP gh#271
преди 9 години
Mark Allen
512fac4a21
Add unsafe_formatting option
преди 9 години
John R. Daily
cf5b39c64f
Severities must be convertible to numbers
преди 9 години
John R. Daily
9cc4abc366
Support _unsafe message levels that dodge trunc_io
преди 9 години
pvmart
8bc6408ec0
fix lager:stop_trace
Fix stop_trace_int so it can remove an event handler
преди 10 години
Mark Allen
9879bcc201
Remove tabs that snuck in last commit
преди 10 години
Mark Allen
31cf6c02a9
Check configuration as suggested in gh#253
Previously bad configurations would be
silently ignored. Now they will throw
an error tuple.
преди 10 години
Mark Allen
3223014933
Use Meta as a better var name to capture intent
преди 10 години
Mark Allen
060402b9be
Use macro here instead of naked atom
преди 10 години