John R. Daily
81222ca486
More get_env cleanup
il y a 9 ans
John R. Daily
09610138fe
Tweak to be a bit more efficient
il y a 9 ans
John R. Daily
968d879148
Leverage existing lager_app:get_env wrapper for error_logger_lager_h
il y a 9 ans
John R. Daily
6d8cd800f9
Address #332 . The `stdlib` module `supervisor` reports the child name as `id` now vs `name` previously
il y a 9 ans
Andrew Thompson
23e7bc085d
Port improper iolist support from io_lib_format.erl & add tests
il y a 9 ans
Mark Allen
b2cb273571
Release 3.1.0
il y a 9 ans
Mark Allen
c7737da3a1
Release 3.0.3
il y a 9 ans
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.
il y a 9 ans
Daniil Fedotov
c278368a65
Replace API for file rotation. Now supports rotate_handler/1,2 to rotate custom handler
il y a 9 ans
Mark Allen
063d628549
Dialyzer insists on matching a return value
il y a 9 ans
Mark Allen
cb5114fbc3
Delete trace from the global handler list too
il y a 9 ans
Daniil Fedotov
962eb2c1d7
Rotate as gen_event:call
il y a 9 ans
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.
il y a 9 ans
Daniil Fedotov
af3a2d79c4
API to explicitly call log rotation
il y a 9 ans
Daniil Fedotov
f9b38c5850
error_logger_format_raw added to module state
il y a 9 ans
Daniil Fedotov
edcf7f4992
No default config for reformatting error_logger messages
il y a 9 ans
Daniil Fedotov
4b9b21ce64
Valid case statement
il y a 9 ans
Daniil Fedotov
75e827a1bf
Application env error_logger_format_raw to not reformat error_logger messages
il y a 9 ans
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.
il y a 9 ans
Daniil Fedotov
146b0461fd
Tests and SHOULD_LOG fix
il y a 9 ans
Daniil Fedotov
2248a2aad1
Support for separate sing for error_logger messages
il y a 9 ans
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.
il y a 9 ans
Alexander Verbitsky
aef8b9a9f4
Rewriting of function for printing stacktrace in human readable form with using 'format_mfa'
il y a 9 ans
Alexander Verbitsky
030309e8f1
Backward compatibility for old OTP versions
il y a 9 ans
Alexander Verbitsky
93f1c95894
Function for printing stacktrace in human readable form
il y a 9 ans
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
il y a 9 ans
sag
36701dba58
fix: string:right is arity 2, test for bad args
il y a 9 ans
sag
55108be9f2
fix: the word width is misspelled in all of the test cases
il y a 9 ans
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
il y a 9 ans
Lee GiTack
8b16d41201
Fix several typos
il y a 9 ans
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"
il y a 9 ans
John R. Daily
2f7f7b7dde
application:get_env/3 has different semantics than get_env/2
il y a 9 ans
John R. Daily
6e2d97389c
Handle lack of get_env/3 within R15
il y a 9 ans
Mark Allen
cbf6679c6a
Roll 3.0.1
il y a 9 ans
John R. Daily
13d4db235d
Intercept error_logger as pseudo-sink before getting deeper into loglevel code
il y a 9 ans
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.
il y a 9 ans
Mark Allen
25b700d930
{ok, exists} is accounted for in the code path
Removed comment
il y a 9 ans
Mark Allen
d7cd9fc36d
Rename list_all_sinks
il y a 9 ans
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.
il y a 9 ans
Mark Allen
5bcdadeccb
Add log_unsafe/4
il y a 9 ans
Mark Allen
e0abc34a32
Remove testing crutch
il y a 9 ans
Mark Allen
6a458a4280
Make 'dynamic' conform to OTP gh#271
il y a 9 ans
Mark Allen
512fac4a21
Add unsafe_formatting option
il y a 9 ans
John R. Daily
cf5b39c64f
Severities must be convertible to numbers
il y a 9 ans
John R. Daily
9cc4abc366
Support _unsafe message levels that dodge trunc_io
il y a 9 ans
pvmart
8bc6408ec0
fix lager:stop_trace
Fix stop_trace_int so it can remove an event handler
il y a 10 ans
Mark Allen
9879bcc201
Remove tabs that snuck in last commit
il y a 10 ans
Mark Allen
31cf6c02a9
Check configuration as suggested in gh#253
Previously bad configurations would be
silently ignored. Now they will throw
an error tuple.
il y a 10 ans
Mark Allen
3223014933
Use Meta as a better var name to capture intent
il y a 10 ans
Mark Allen
060402b9be
Use macro here instead of naked atom
il y a 10 ans