History log of /dokuwiki/inc/Logger.php (Results 1 – 18 of 18)
Revision Date Author Comments
# 38b70223 25-Nov-2024 Andreas Gohr <andi@splitbrain.org>

code style fixes for Logger


# f577a2ef 25-Nov-2024 Andreas Gohr <andi@splitbrain.org>

Allow tests to expect log messages


# 521819ff 26-Aug-2024 Andreas Gohr <andi@splitbrain.org>

make sure stderr is defined in logger

STDERR is only defined when PHP is called from the command line.

In the docker health check we set DOKU_UNITTEST to make sure that errors
trigger exceptions in

make sure stderr is defined in logger

STDERR is only defined when PHP is called from the command line.

In the docker health check we set DOKU_UNITTEST to make sure that errors
trigger exceptions instead being logged only. However when the error
then is also written to STDERR it fails.

This patch makes sure the data is written to PHP's STDERR stream handler
instead.

Should fix dokuwiki/docker#15

show more ...


# d4059ee7 22-Jun-2024 hauk92 <47572039+hauk92@users.noreply.github.com>

Log in local time instead of utc


# fe15e2c0 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: static visibility


# dccd6b2b 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: function call spacing


# 74981a4e 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

apply PSR-12 constant visibility rule

PSR-12 says constants need their visibility declared from PHP 7.1
onwards


# 24870174 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to the rest of inc


# 6c6732d6 14-Aug-2022 Andreas Gohr <andi@splitbrain.org>

output log messages to STDERR during unit testig

This is especially helpful to notice deprecation messages


# 25edeeca 14-Aug-2022 Andreas Gohr <andi@splitbrain.org>

log deprecation messages independent from allowdebug

Only the logging configuration should influnece if deprecation messages
are to be logged. By default they should be logged.


# baa301e2 29-Jun-2022 Andreas Gohr <andi@splitbrain.org>

correctly create log file name. fixes #3699

strtoftime does not always recognize Unix Timestamps


# 4b647920 30-Jan-2022 Andreas Gohr <andi@splitbrain.org>

Ignore missing event system in logging #3614


# 555e8b00 10-Jan-2022 Andreas Gohr <andi@splitbrain.org>

Logger: add event to intercept and change the logged data

In some environments you may want to have logs but not have them stored
in the default location or may want a different logging format.

Thi

Logger: add event to intercept and change the logged data

In some environments you may want to have logs but not have them stored
in the default location or may want a different logging format.

This event allows plugins to do that.

show more ...


# a8f9f939 26-Jan-2021 Damien Regad <dregad@mantisbt.org>

Fix array access on null in Logger.php

Fixes #3391


# cad4fbf6 13-Aug-2020 Andreas Gohr <andi@splitbrain.org>

added logging configuration

Log facitlities can now be disabled. By default only debug is disabled.
It might make sense to by default disable deprecated as well?

Debug logging is now independend of

added logging configuration

Log facitlities can now be disabled. By default only debug is disabled.
It might make sense to by default disable deprecated as well?

Debug logging is now independend of the allowdebug method. allowdebug
was often used in two ways: for displaying errors directly to the user
and for logging to the debug log. Now it only controls the former.

show more ...


# c2050393 13-Aug-2020 Andreas Gohr <andi@splitbrain.org>

added convenience methods to log to our default facilities


# 70cc2cbf 13-Aug-2020 Andreas Gohr <andi@splitbrain.org>

added logviwer admin plugin

This allows for easy viewing of the available logs.

The log format was sligthly adjusted again for easier parsing.


# 0ecde6ce 13-Aug-2020 Andreas Gohr <andi@splitbrain.org>

central logging mechanism

This introduces a logger mechanism and a new data/log directory. This is
a first proof of concept. It's built on top of the new global error
handling mechanism

Things to d

central logging mechanism

This introduces a logger mechanism and a new data/log directory. This is
a first proof of concept. It's built on top of the new global error
handling mechanism

Things to discuss:

* should we adopt PSR-3 somehow? if yes, how and should plugins be able
to drop-in other psr3 loggers?
* how to configure which facilities shall be logged?
* should we implement a log deletion feature?
* is the log format sensible?
* should we implement a log viewer admin plugin?
* should logging trigger events (it should maybe replace the
deprecation event)

show more ...