Commit Graph

8 Commits

Author SHA1 Message Date
Andreas Gohr 413313a155 Merge branch 'logging'
* logging:
  added JavaScript based filter mechanism
  added logging configuration
  replaced out calls to dbglog with new Logger calls
  added convenience methods to log to our default facilities
  added logviwer admin plugin
  added log dir to git
  central logging mechanism
2020-12-03 20:01:57 +01:00
Andreas Gohr e4aa0139d5 better deprecation messages for self required plugin base files 2020-08-13 13:40:39 +02:00
Andreas Gohr 0ecde6ce23 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)
2020-08-13 13:28:40 +02:00
Phy 9ced17c4b9
fix undefined index notice in DebugHelper::dbgDeprecatedFunction 2020-03-25 15:53:56 -04:00
Michael Große 1b008e8700
Restore some backwards compatibility for injected handlers
Some plugins, for example the move plugin, use their own handler class.
We need to give these plugins time to adjust their code.

This should restore the functionality of the move plugin. We still need
to extract the handler class itself.

It also adds another debug method for triggering the deprecation event,
since none of the two existing methods are suitable here. This
dbgCustomDeprecationEvent method should be used sparingly and only where
the other two don't work.

Co-authored-by: Phy <git@phy25.com>
2020-01-22 20:14:59 +01:00
Andreas Gohr fdf261bd6b Avoid accessing the evet system before it's intialized
reimplements cbfa1cdd75
2019-04-20 22:05:05 +02:00
Andreas Gohr e1d9dcc8b4 First go at moving the plugin classes into their own namespace 2019-04-20 21:33:23 +02:00
Michael Große 0c5eb5e2d5
Refactor deprecation logging into its own class
This gives us the flexibility to handle both deprecated properties and
methods/functions properly.
2019-02-25 22:13:38 +01:00