Comments (5)
What do you mean by non-blocking ? Logging asynchronously ? this would be hard given the fact that PHP is synchronous (playing with forks of the process is not a good idea IMO given that it would probably introduce more bugs in the logging process than helping about making it efficient)
from monolog.
You're probably looking for the syslog handler.
from monolog.
There are no real async handlers, but the GelfHandler is the closest to async since it uses UDP to send data to the server, it's just pushing data as fast as it can and never waits for ACKs.
from monolog.
Hey guys, thanks for the replies.
By my initial statement, I was just looking for something that wouldn't connect to a remote server, try to log to a file, wait for the file append to complete, then send back a success code.
I've decided, for a number of reasons, to go with ZeroMQ, I'm going to quickly stick in a "log" job into its event pool and disconnect. So that the job itself of logging is decoupled from my PHP process and thus much faster.
from monolog.
Hello!
Now Non-Blocking option relevant for ReactPHP.
from monolog.
Related Issues (20)
- Add support for Elasticsearch with Bulk API and data stream HOT 1
- Could a new release be considered to remove the 0.7MB logo from the package ? HOT 1
- Uncaught Error: Class "Monolog\Logger" not found HOT 7
- User definable duplication for DeduplicationHandler
- Encounter problem in format function HOT 3
- DatetimeImmutable HOT 1
- [Discussion] Reset FingersCrossedHandler on stateful runtimes HOT 8
- Extending Processors - private properties HOT 1
- Incorrect logs are written in Monolog files intermittently HOT 1
- Truncated JsonFormatter logs at 8191 characters HOT 5
- Log Message is truncated HOT 1
- Log level not compliant with rfc5424 HOT 2
- DeduplicationHandler in a read only container HOT 4
- IntrospectionProcessorTests: $expect and $actual are the same object by reference.
- Php 8.3 compatibility issue HOT 5
- Adding postParams in ERROR notice for HTTP 405 code HOT 1
- `HandlerInterface::isHandling` could have better naming
- NewRelicHandler exception
- Allow to specify time for log records
- `$mustRotate` in `RotatingFileHandler` not resetting properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monolog.