Skip to content

Releases

1.0.8

Choose a tag to compare

@Netkas Netkas released this 22 Oct 16:55
96f43df

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

Choose a tag to compare

@Netkas Netkas released this 05 Oct 14:03
5cce78d

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
    to ERR and CRT events by default
  • Added EmailHandler & EmailConfiguration for sending log events as emails using SMTP (with optional STARTTLS/TLS
    and authentication), filtered to ERR and CRT events by default
  • Added DiscordHandler & DiscordConfiguration for posting log events to a Discord channel/thread using a webhook,
    filtered to ERR and CRT events 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 via error_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 under DescriptorConfiguration::class instead 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

Choose a tag to compare

@Netkas Netkas released this 30 May 18:51
b182c60

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

Choose a tag to compare

@Netkas Netkas released this 05 Jan 18:52
6eaba8a

Added support for ncc v3.+

1.0.3

Choose a tag to compare

@Netkas Netkas released this 14 Mar 18:09
27681d5

Minor changes to the project

Changed

  • Updated dependency remote address

1.0.2

Choose a tag to compare

@Netkas Netkas released this 27 Jan 08:21

Minor changes to the project

Changed

  • ExceptionDetails now accepts a string as a type for the $line and $code parameter, this will automatically
    convert the string to an integer.

1.0.1

Choose a tag to compare

@Netkas Netkas released this 22 Jan 18:55

Minor changes to the project

Fixed

  • Fixed issue where \LogLib2\Classes\Utilities::getSafeValue(mixed $input) would return
    a null value when the typed output is string by including a branch that converts
    the gettype($input) to a string when the input is null.

1.0.0

Choose a tag to compare

@Netkas Netkas released this 22 Jan 06:05

This is the initial release of LogLib2