dlucian / kohana-papertrail Goto Github PK
View Code? Open in Web Editor NEWPapertrail logging module for Kohana
Papertrail logging module for Kohana
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.