Giter Site home page Giter Site logo

papertrail's Introduction

Hello, it’s nice to meet you. My name is Scott. And I like pizza.

Metrics

papertrail's People

Contributors

johnpbloch avatar sc0ttkclark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

papertrail's Issues

Dies in php 8

When upgrading my server from 7.4 to PHP 8.0, I encountered this (slightly edited)
Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Papertrail_API::error_handler(), 4 passed and exactly 5 expected in /nas/content/live/ccc/WP_Papertrail_API.php:194

I replaced, in WP_Papertrails_API.php,
this
public static function error_handler( $id, $message, $file, $line, $context )
with
public static function error_handler( $id, $message, $file, $line ) {

Seems to work, but I'm not confident enough in this solution to post a Pull Request.
See also: //https://stackoverflow.com/questions/65201307/too-few-arguments-to-function-exception-error-handler-php8

Logging all PHP errors

Thanks for putting this together!

More a question than anything else, just to check whether I'm barking up the wrong tree, if I wanted to send all PHP errors to Papertrail (and can't use the usual remote_syslog option because it's shared hosting), I would imagine I could use set_error_handler() and send errors through to WP_Papertrail_API::log()... right?

Would you suggest doing this any differently?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.