plugin:sentry
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
plugin:sentry [2018-06-02 11:39] – created andi | plugin:sentry [2020-07-02 23:51] (current) – version upped andi | ||
---|---|---|---|
Line 3: | Line 3: | ||
---- plugin ---- | ---- plugin ---- | ||
description: | description: | ||
- | author | + | author |
- | email : andi@splitbrain.org | + | email : dokuwiki@cosmocode.de |
type : action, helper | type : action, helper | ||
- | lastupdate : 2018-06-02 | + | lastupdate : 2020-07-02 |
compatible : Greebo | compatible : Greebo | ||
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : logging | + | tags : logging, devel |
downloadurl: | downloadurl: | ||
Line 20: | Line 20: | ||
screenshot_img : | screenshot_img : | ||
---- | ---- | ||
+ | |||
+ | [[https:// | ||
This plugin will log errors and exceptions in DokuWiki' | This plugin will log errors and exceptions in DokuWiki' | ||
Line 25: | Line 27: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
+ | |||
+ | **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. | ||
+ | |||
+ | **Changes** | ||
+ | |||
+ | {{rss> | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | Use the extension manager and configure the DSN to you sentry project. You can find it under project settings | + | Use the extension manager and configure the DSN to you sentry project. You can find it under // |
It should look like this: '' | It should look like this: '' | ||
+ | You can configure which kind of errors should be logged via the '' | ||
+ | |||
+ | The '' | ||
===== Usage ===== | ===== Usage ===== | ||
Line 43: | Line 54: | ||
==== PHP ==== | ==== PHP ==== | ||
- | To log an error use the helper | + | To log an error use the helper |
<code php> | <code php> | ||
Line 52: | Line 63: | ||
if($sentry) $sentry-> | if($sentry) $sentry-> | ||
msg(hsc($e-> | msg(hsc($e-> | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | 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(' | ||
+ | if($sentry) { | ||
+ | | ||
} | } | ||
</ | </ |
plugin/sentry.1527932357.txt.gz · Last modified: 2018-06-02 11:39 by andi