diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-15 19:37:26 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-15 19:37:26 -0800 |
commit | 12b0a9f35f589d2d571b1362c47dc85aa2cc9970 (patch) | |
tree | 7695f4016b14f7bedf67aa22d6b8a1e5ad40addd | |
parent | fff30b1c3d7030ff63c880c13bcb47e2932cd1b8 (diff) | |
download | volse-hubzilla-12b0a9f35f589d2d571b1362c47dc85aa2cc9970.tar.gz volse-hubzilla-12b0a9f35f589d2d571b1362c47dc85aa2cc9970.tar.bz2 volse-hubzilla-12b0a9f35f589d2d571b1362c47dc85aa2cc9970.zip |
add logger plugin hook
-rw-r--r-- | doc/hook/logger.bb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/hook/logger.bb b/doc/hook/logger.bb new file mode 100644 index 000000000..8fe989abd --- /dev/null +++ b/doc/hook/logger.bb @@ -0,0 +1,16 @@ +[h2]logger[/h2] + +Called when making an entry to the application logfile + +Hook data: + + array( + 'filename' => name of logfile relative to application basedir. String. + 'loglevel' => the log level of this log entry, if this is higher than the configured maximum loglevel + this hook will not be called. Integer. + 'message' => The formatted log message, ready for logging. String. + 'logged' => boolean, default is false. Set to true to prevent the normal logfile entry to be made + (e.g. if the plugin is configured to handle this aspect of the function, or if it is determined + that this log entry should not be made) + ) + |