ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v6:reference:connection:debuglogmarker

debugLogMarker()

Syntax
void debugLogMarker (
  string $tag,
  string $message
  )

Description

This method writes a message of any type, with any tag, into the Monolog DEBUG level log. It is useful for isolating errors and other coding issues. If debugging is not switched on, it is ignored


Example

$db->debugLogMarker('MYMARKER', 'Should reach this point');

This might produce a log entry similar to:

[2020-09-05T19:06:55] ADOdb.DEBUG: MEMCACHE: Loaded the MemCached Libary [] []
[2020-09-05T19:06:55] ADOdb.DEBUG: MEMCACHE: Successfully set memcache option 2 to 8 [] []
[2020-09-05T19:06:55] ADOdb.DEBUG: MYMARKER: Should reach this point [] []
[2020-09-05T19:06:55] ADOdb.DEBUG: MEMCACHE: 71a071eb865c1bafbcc49e274a7ac6b6 cache failure: Timeout 1 (this is a notice and not an error [] []
v6/reference/connection/debuglogmarker.txt · Last modified: by 127.0.0.1