Repository navigation
Releases
Releases · nosial/LogLib2
1.0.8
This update brings the project up to date with ncc 3.1.11
Changed
- Removed the duplicate legacy Forgejo build workflow; the current ncc workflow also handles pull requests.
- Included the project's light and dark icons from NosialFrontier in the README header.
- Updated the project to use ncc 3.1.11
- The log level is now checked before an event is created, so log calls filtered out by the environment log level
no longer capture a full backtrace
1.0.7
This update introduces new handlers and minor bug fixes
Added
- Added TelegramHandler & TelegramConfiguration for pushing log events to a Telegram chat/topic using a bot, filtered
toERRandCRTevents by default - Added EmailHandler & EmailConfiguration for sending log events as emails using SMTP (with optional STARTTLS/TLS
and authentication), filtered toERRandCRTevents by default - Added DiscordHandler & DiscordConfiguration for posting log events to a Discord channel/thread using a webhook,
filtered toERRandCRTevents by default
Changed
- Log handlers are now isolated from each other, a handler that throws is disabled for that logger instance and the
failure is reported once viaerror_log()instead of propagating to the caller or preventing other handlers from
receiving the event - Events raised while another event is being handled (e.g. PHP warnings emitted by a handler) are dropped to prevent
infinite recursion - EmailHandler's timeout now applies to the whole SMTP session rather than each reply
Fixed
Logger::getAvailability()reported the descriptor handler underDescriptorConfiguration::classinstead of
DescriptorHandler::class- The shutdown handler registered by
Logger::registerHandlers()reported the last error of the request as critical
even when it was a non-fatal error (e.g. a warning) that had already been logged, it now only reports fatal errors
1.0.6
This release introduces optimization improvements
Changed
- Update socket handling in TcpHandler and UdpHandler to use null instead of unset for failed socket creations
- Implement caching for some elements in FileHandler
- Updated HttpHandler to manage cURL handler instances and track failed endpoints
- Refactor TcpHandler and UdpHandler to use pfsockopen for socket management
Fixed
- Corrected usage of socket connections in UdpHandler
1.0.4
1.0.3
1.0.2
1.0.1
Minor changes to the project
Fixed
- Fixed issue where \LogLib2\Classes\Utilities::getSafeValue(mixed $input) would return
a null value when the typed output isstringby including a branch that converts
thegettype($input)to a string when the input is null.