<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged bugsnag</title>
<link>https://www.question2answer.org/qa/tag/bugsnag</link>
<description>Powered by Question2Answer</description>
<item>
<title>Installing bugsnag</title>
<link>https://www.question2answer.org/qa/51620/installing-bugsnag</link>
<description>

&lt;p&gt;Hi, I am trying to install bugsnag (bugsnag.com), a bug notification library on our Q2A site. The site is integrated with Wordpress, but from the looks of it the bugsnag library needs to be installed with the Q2A site (instead of via the Wordpress admin console which does not give the option). Where's the best place to install the library and put the bugsnag code:&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;pre&gt;&lt;strong&gt;require_once&lt;/strong&gt; &lt;span style=&quot;color:rgb(221, 17, 68)&quot;&gt;&quot;/path/to/Bugsnag/Autoload.php&quot;&lt;/span&gt;;&lt;/pre&gt;

&lt;p&gt;3. Configure Bugsnag with your API key&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color:teal&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color:teal&quot;&gt;bugsnag&lt;/span&gt; &lt;strong&gt;=&lt;/strong&gt; &lt;strong&gt;new&lt;/strong&gt; &lt;strong&gt;Bugsnag_Client&lt;/strong&gt;(&lt;span style=&quot;color:rgb(221, 17, 68)&quot;&gt;&quot;xxxxxxxx&quot;&lt;/span&gt;);&lt;/pre&gt;

&lt;p&gt;This code includes your unique Bugsnag API key, and should be copied directly into your code.&lt;/p&gt;

&lt;p&gt;4. Enable automatic error and exception notification by attaching Bugsnag's error and exception handlers&lt;/p&gt;

&lt;pre&gt;set_error_handler(&lt;span style=&quot;color:rgb(0, 134, 179)&quot;&gt;array&lt;/span&gt;(&lt;span style=&quot;color:teal&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color:teal&quot;&gt;bugsnag&lt;/span&gt;, &lt;span style=&quot;color:rgb(221, 17, 68)&quot;&gt;&quot;errorHandler&quot;&lt;/span&gt;));
set_exception_handler(&lt;span style=&quot;color:rgb(0, 134, 179)&quot;&gt;array&lt;/span&gt;(&lt;span style=&quot;color:teal&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color:teal&quot;&gt;bugsnag&lt;/span&gt;, &lt;span style=&quot;color:rgb(221, 17, 68)&quot;&gt;&quot;exceptionHandler&quot;&lt;/span&gt;));&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51620/installing-bugsnag</guid>
<pubDate>Thu, 05 May 2016 02:41:01 +0000</pubDate>
</item>
</channel>
</rss>