Repository navigation
Releases: alpha6/Log-Mini
Releases · alpha6/Log-Mini
Release list
0.5.1
0.5.0
- Allow logrotate even an app doesn't care about HUP signal or similar. Now you can just remove the log file and logger will recreate it as soon as log something
- Allow logging with context.
push_context('context text')- add to context
pop_context()- removes last element from context
clear_context()- removes all elements from context
Example:
$log->push_context('request_id=12345');
$log->error('some error');
will produce:
2024-08-14 20:58:08.744 [error] request_id=12345: some error