Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.14.152.212
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-test /
vendor /
monolog /
monolog /
doc /
Delete
Unzip
Name
Size
Permission
Date
Action
01-usage.md
8.28
KB
-rw-r--r--
2018-11-05 09:00
02-handlers-formatters-processors.md
9.82
KB
-rw-r--r--
2018-11-05 09:00
03-utilities.md
928
B
-rw-r--r--
2018-11-05 09:00
04-extending.md
2.11
KB
-rw-r--r--
2018-11-05 09:00
sockets.md
1023
B
-rw-r--r--
2018-11-05 09:00
Save
Rename
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 <?php use Monolog\Logger; use Monolog\Handler\SocketHandler; // Create the logger $logger = new Logger('my_logger'); // Create the handler $handler = new SocketHandler('unix:///var/log/httpd_app_log.socket'); $handler->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 [] []