index0h / yii2-log Goto Github PK
View Code? Open in Web Editor NEWDifferent Yii2 log transports
Home Page: http://index0h.github.io/yii2-log
License: MIT License
Different Yii2 log transports
Home Page: http://index0h.github.io/yii2-log
License: MIT License
If we want to gather Log information in some target (ie LogStash) we lost the message and it will not be exported.
Because on TargetTrait the parseText method will call get_object_vars() on $text when it's an instance of Exception. Unfortunately default Exception use protected attributes and we lost the default Exception message at this step.
We can do something like this :
case 'object':
$vars = get_object_vars($text);
if ($text instanceof \Exception) {
$vars['@message'] = $text->getMessage();
}
return $vars;
But I don't think it's the best manner to handle it.
Look on monolog
Hi,
We want to use the extension to send directly to our elasticsearch node.
In the elasticSearchTarget we see that there is a post method
https://github.com/index0h/yii2-log/blob/master/src/ElasticsearchTarget.php#L39
However we can not find where this posts to as no dsn is associated with the ElasticSearchTarget.
Is there a way to post to an elastiocsearch node and bypass logstash?
-S.
Привязка к Yii 2.0.0 является критичной?
Есть ли возможность указать гибкую версию? (например ">=2.0.0")
Спасибо за полезный плагин.
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.