======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: - Cloning the class into your own format - 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: - Cloning the class into your own format - 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";