ERROR LOG UPON EXIT v1.4
Introduction
Ever get tired of having to refresh after making a change, just to find out if there are any errors in the error log?
I did, so I wrote a mod consisting of several hooks to get the number of errors in the log and write it to the output buffer before it is sent to the user, thus allowing up-to-date error log counts AFTER all source and template processing has taken place!
Admin Settings
There are no admin settings for this mod!
Compatibility Notes
This mod was tested on SMF 2.0.11, but should work on SMF 2.0 and up. SMF 1.0.x is not supported. SMF 1.1.x has been somewhat tested, however, PHP 5.6.x doesn't play nice with SMF 1.1.x so there may be some undiagnosable (for me) install issues....
Changelog
The changelog can be viewed at XPtsp.com.
License
Copyright (c) 2016 - 2018, Douglas Orend
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.