/home/desid573/public_html/tollster/vendor/monolog/monolog/doc
NameSizeModeActions
01-usage.md84760644editdlrm
02-handlers-formatters-processors.md99510644editdlrm
03-utilities.md7980644editdlrm
04-extending.md21590644editdlrm
sockets.md10230644editdlrm
Edit: /home/desid573/public_html/tollster/vendor/monolog/monolog/doc/sockets.md (1023B)
Sockets Handler =============== This handler allows you to write your logs to sockets using [fsockopen](http://php.net/fsockopen) or [pfsockopen](http://php.net/pfsockopen). Persistent sockets are mainly useful in web environments where you gain some performance not closing/opening the connections between requests. You can use a `unix://` prefix to access unix sockets and `udp://` to open UDP sockets instead of the default TCP. Basic Example ------------- ```php setPersistent(true); // Now add the handler $logger->pushHandler($handler, Logger::DEBUG); // You can now use your logger $logger->addInfo('My logger is now ready'); ``` In this example, using syslog-ng, you should see the log on the log server: cweb1 [2012-02-26 00:12:03] my_logger.INFO: My logger is now ready [] []