DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:sentry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:sentry [2018-06-05 16:28] grosseplugin:sentry [2020-07-02 23:51] (current) – version upped andi
Line 6: Line 6:
 email      : dokuwiki@cosmocode.de email      : dokuwiki@cosmocode.de
 type       : action, helper type       : action, helper
-lastupdate : 2018-06-05+lastupdate : 2020-07-02
 compatible : Greebo compatible : Greebo
 depends    :  depends    : 
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : logging+tags       : logging, devel
  
 downloadurl: https://github.com/cosmocode/dokuwiki-plugin-sentry/zipball/master downloadurl: https://github.com/cosmocode/dokuwiki-plugin-sentry/zipball/master
Line 21: Line 21:
 ---- ----
  
-[[http://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ http://cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]+[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ http://cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
  
 This plugin will log errors and exceptions in DokuWiki's PHP backend and the JavaScript frontend to a Sentry instance. You can either use [[https://sentry.io|sentry.io]] or a self hosted instance. This plugin will log errors and exceptions in DokuWiki's PHP backend and the JavaScript frontend to a Sentry instance. You can either use [[https://sentry.io|sentry.io]] or a self hosted instance.
Line 27: Line 27:
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 **Privacy Info:** when you install this plugin in a live wiki, you probably need to inform your users that their personal information (username, email, IP-Address, browser info) is logged to Sentry in case of an unforeseen error. Sentry also offers some detailed setting to configure how long personal data is retained. **Privacy Info:** when you install this plugin in a live wiki, you probably need to inform your users that their personal information (username, email, IP-Address, browser info) is logged to Sentry in case of an unforeseen error. Sentry also offers some detailed setting to configure how long personal data is retained.
Line 67: Line 67:
  
 The helper plugin exposes some more public methods in case you need more control. The helper plugin exposes some more public methods in case you need more control.
 +
 +You can also use the following to log an arbitrary message and additional data. (Useful when debugging problems on a live server):
 +
 +<code php>
 +$sentry = plugin_load('helper','sentry');
 +if($sentry) {
 +     $sentry->logMessage('my log message', array( 'something' => $info) );
 +}
 +</code>
  
 ==== JavaScript ==== ==== JavaScript ====
plugin/sentry.1528208903.txt.gz · Last modified: 2018-06-05 16:28 by grosse

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki