tars-log document
Introduction
Instructions
Install
Configuration
$config = new \Tars\client\CommunicatorConfig(); $config->setLocator("tars.tarsregistry.QueryObj@tcp -h 172.16.0.161 -p 17890"); $config->setModuleName("tedtest"); $config->setCharsetName("UTF-8"); $config->setLogLevel("INFO"); //`INFO`,`DEBUG`,`WARN`,`ERROR` default:INFO $config->setSocketMode(2); //socket mode: 1: socket, 2: swoole tcp client, 3: swoole coroutine tcp client$config = new \Tars\client\CommunicatorConfig(); $sFilePath = '{project}/src/conf'; //Configuration file path $config->init($sFilePath);
Output log
With ELK
Last updated