You are here

function gelf_require in GELF 8

Same name and namespace in other branches
  1. 7 gelf.module \gelf_require()

Include gelf-php library.

Return value

bool

3 calls to gelf_require()
GelfLog::log in src/Logger/GelfLog.php
gelf_form_system_logging_settings_alter in ./gelf.module
Implements hook_form_FORM_ID_alter().
gelf_requirements in ./gelf.install
Implements hook_requirements().

File

./gelf.module, line 55
gelf.module

Code

function gelf_require() {

  // Check if the classes already exist and allow existing autoloaders.
  if (class_exists('\\Gelf\\Message') && class_exists('\\Gelf\\Publisher')) {
    return TRUE;
  }
  return FALSE;
}