ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v6:logging:custom_formats

Customizing The Message JSON

See Also
[[v6:logging|The Logging Plugin Main Page]]

The JSON Message Format

The format of the message is self contained in the class \ADOdb\LoggingPlugin\ADOJsonLogFormat. The class can be modified by:

  1. Cloning the class into your own format
  2. Calling the new class by overriding the necessary public variable
use ADOdb\LoggingPlugin\builtin\ADOLogger;
use ADOdb\LoggingPlugin\builtin\StreamHandler;
 
$logBase = '/var/log/adodb/';
$loggingObject = new ADOLogger();
$loggingObject->jsonLogObject = "\\MyClass\\ADOJsonLogFormat";

The JSON Tag Format

The format of the message is self contained in the class \ADOdb\LoggingPlugin\ADOJsonTagFormat. The class can be modified by:

  1. Cloning the class into your own format
  2. Calling the new class by overriding the necessary public variable
use ADOdb\LoggingPlugin\builtin\ADOLogger;
use ADOdb\LoggingPlugin\builtin\StreamHandler;
 
$logBase = '/var/log/adodb/';
$loggingObject = new ADOLogger();
$loggingObject->jsonTagObject = "\\MyClass\\ADOJsonTagFormat";
v6/logging/custom_formats.txt · Last modified: by 127.0.0.1