You are here

public static function LagoonLogger::getLogger in Lagoon Logs 7

Parameters

$hostName:

$hostPort:

Return value

\LagoonLogger|null

1 call to LagoonLogger::getLogger()
lagoon_logs_watchdog in ./lagoon_logs.module
Implements hook_watchdog()

File

lib/LagoonLogger.php, line 91

Class

LagoonLogger

Code

public static function getLogger($hostName, $hostPort) {
  if (!isset(self::$loggerInstance)) {
    self::$loggerInstance = new self($hostName, $hostPort);
  }
  return self::$loggerInstance;
}