Giter VIP home page Giter VIP logo

kohana-papertrail's Issues

Logs aren't being sent to Papertrail

I'm able to generate log messages ERROR and DEBUG which appear in my log files.

I've got the module installed, it's being loaded in bootstrap and I've attached it to KOHANA log.

Here is a var_dump of the log writer:

...
'0000000073de3dca0000000019fdf9a2' => 
        array (size=2)
          'object' => 
            object(Papertrail_Log)[10]
              private 'url' => string 'logs.papertrailapp.com' (length=22)
              private 'port' => int 63047
              protected '_log_levels' => 
                array (size=9)
                  0 => string 'EMERGENCY' (length=9)
                  1 => string 'ALERT' (length=5)
                  2 => string 'CRITICAL' (length=8)
                  3 => string 'ERROR' (length=5)
                  4 => string 'WARNING' (length=7)
                  5 => string 'NOTICE' (length=6)
                  6 => string 'INFO' (length=4)
                  7 => string 'DEBUG' (length=5)
                  8 => string 'STRACE' (length=6)
          'levels' => 
            array (size=3)
              0 => int 3
              1 => int 6
              2 => int 7

Looking at my Papertrail Dashboard I can't see anything coming in. I thought maybe the 'levels' array was wrong so instead of the integers I tried passing in 'ERROR', 'DEBUG', etc. but that didn't do anything.

Please note that I had to change attach() by removing Log_Writer as it was complaining that

ErrorException [ Recoverable Error ]: Argument 1 passed to Kohana_Log::attach() must be an instance of Log_Writer, instance of Papertrail_Log given
public function attach(Log_Writer $writer, $levels = array(), $min_level = 0)

Can you suggest anything which might be stopping the logs from being sent?

Thanks

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.