[dokuwiki] Re: New PR: central logging mechanism

  • From: Chris Green <cl@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 13 Aug 2020 19:06:13 +0100

splitbrain <wiki@xxxxxxxxxxxx> wrote:

Hi,

splitbrain opened a new pull request at 
https://github.com/splitbrain/dokuwiki/pull/3230:

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?

I think a log 'mask' might be more appropriate, i.e. a way to prevent
massive logging from 'plugin A' while trying to debug 'plugin B'.


* is the log format sensible?
* should we implement a log viewer admin plugin?

Yes, sounds an excellent idea to me.


* should logging trigger events (it should maybe replace the
  deprecation event)

Useful to spot specific problems maybe.

-- 
Chris Green
·

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: