Skip to content

Releases: jdwx/log-php

v2.0.24

Choose a tag to compare

@jdwx jdwx released this 02 Sep 23:11
  • Improve handling of exceptions that have context.
  • Improve handling of class names that have embedded nulls. (Anonymous classes do this.)

v2.0.23

Choose a tag to compare

@jdwx jdwx released this 08 Jun 22:59
  • Make it a little easier to get loggable context values, especially in batch loggers.
  • Add LogEntry::valueContext().
  • Add GlobalContext::valueContext().
  • AbstractBatchLogger now calls ::batch() with value-ized common context.

It is still the responsibility of batchers to value-ize the context of each LogEntry in the batch. (I.e., by calling $entry->valueContext() instead of $entry->context().)

v2.0.22

Choose a tag to compare

@jdwx jdwx released this 04 Jun 23:58
  • Escaping \n proved to be a mistake in production. Multi-line log artifacts are important.

v2.0.21

Choose a tag to compare

@jdwx jdwx released this 24 May 04:58

Use depth/property count in AbstractFormattedLogger.

v2.0.20

Choose a tag to compare

@jdwx jdwx released this 24 May 04:42

Further propagate GlobalContext through LogEntry.

v2.0.19

Choose a tag to compare

@jdwx jdwx released this 24 May 04:34

Make it possible for LogEntry to inherit depth/property count settings through the logger's GlobalContext.

v2.0.18

Choose a tag to compare

@jdwx jdwx released this 24 May 03:24

Setting GlobalContext defaults to PHP_INT_MAX and making loggers inherit them is a bad combination.

GlobalContext still propagates the values, but now hardcodes PHP_INT_MAX for its own calls.

v2.0.17

Choose a tag to compare

@jdwx jdwx released this 24 May 02:30
  • AbstractDirectLogger will import depth/property count defaults from a GlobalContext at construction.

v2.0.16

Choose a tag to compare

@jdwx jdwx released this 24 May 02:23
  • Document requirement for PHP 8.3 for 2.x. There's no point in preserving PHP 8.2 compatibility when this depends on modules that require 8.3.
  • Add the ability to customize depth and property count in GlobalContext and AbstractDirectLogger.

v2.0.15

Choose a tag to compare

@jdwx jdwx released this 23 May 05:36
  • Add GlobalContext to ContextDecoratorLogger.