You are here

function monolog_request_id in Monolog 7

Same name and namespace in other branches
  1. 6 monolog.module \monolog_request_id()

Returns a unique identifier for the page request or PHP process.

Return value

string

1 call to monolog_request_id()
monolog_logging_watchdog in modules/monolog_logging/monolog_logging.module
Implements hook_watchdog().

File

./monolog.module, line 288
A Framework and UI for integrating with the Monolog library.

Code

function monolog_request_id() {
  static $request_id = FALSE;
  if (!$request_id) {
    $request_id = uniqid();
  }
  return $request_id;
}