nikolaposa / monolog-factory Goto Github PK
View Code? Open in Web Editor NEW๐ญ Configuration-based Monolog logger factory.
License: MIT License
๐ญ Configuration-based Monolog logger factory.
License: MIT License
How I can describe BufferHandler?
I try:
$loggerFactory = new LoggerFactory();
$logger = $loggerFactory->createLogger('logger', [
'handlers' => [
[
'name' => BufferHandler::class,
'options' => [
'handler' => [
'name' => NativeMailerHandler::class,
'options' => [
'to' => '[email protected]',
'subject' => 'Test',
'from' => '[email protected]',
'level' => Logger::ALERT,
'formatter' => [
'name' => HtmlFormatter::class,
],
],
]
]
]
]
]);
Hey and thx for this lib. May u will bump version of psr/container to ^2.0. On try to install psr/container i get follow problem from composer
Problem 1
- nikolaposa/monolog-factory[dev-master, 3.1.0] require psr/container ^1.0 -> found psr/container[1.0.0, 1.1.0, 1.1.1, 1.1.x-dev] but it conflicts with your root composer.json require (^2.0).
- nikolaposa/monolog-factory 3.1.x-dev is an alias of nikolaposa/monolog-factory dev-master and thus requires it to be installed too.
- Root composer.json requires nikolaposa/monolog-factory ^3.1 -> satisfiable by nikolaposa/monolog-factory[3.1.0, 3.1.x-dev (alias of dev-master)].
thx in advance
Can you update the library to use monolog 2?
Hello
Thanks for this great packages, that is very interresting. I've just one regret, that there is no version compatible with PHP 5.
Perharps a version 1.x compatible PHP5, and get version 2.x compatible PHP 7.
What do you think about this ?
Monolog handler can push custom processor for a handler. Can I define processor for a handler (non all handlers) via this lib.
Example:
'monolog' => [
'config' => [
'processors' => [...], // global processors for all handlers
'handlers' => [
'kibana' => [ ... ],
'stdout' => [
'name' => StreamHandler::class,
'options' => [
'stream' => 'php://stdout',
],
'processors' => [...], // I want add processors for current handler
],
How can I describe config for GroupHandler?
Hey!
Do you plan to support PHP 8 on this library? I can try to contribute the change if so.
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.