vados / phalcon-tcplogger
TCP Adapter for Phalcon Logger
0.1
2019-02-22 18:57 UTC
Requires
- php: >=7.1.0
- ext-phalcon: >=3.2
- ext-sockets: *
Requires (Dev)
- phalcon/ide-stubs: v3.2.1
- phpunit/phpunit: ^7.0@dev
This package is auto-updated.
Last update: 2024-11-25 07:30:31 UTC
README
Works with PHP 7.1+
Usage
Adapter implement \Phalcon\Logger\AdapterInterface. You can use it like an any other adapter from Phalcon Framework
$logger = new \Vados\TCPLogger\Adapter('127.0.0.1', 8080, \Vados\TCPLogger\Protocol::TCP); $logger->error('Error message');
Example
You can find examples of usage in official documentation for Phalcon
Installation
Use composer for installation
composer require vados/phalcon-tcplogger
Contribution guidelines
- Writing tests
- Code review
- Guidelines accord