/** * Set the logger instance. * * @param object $logger */ static function set_logger($logger) { self::$logger = $logger; }
/** * Set the logger instance to a class property * * @param array $config Configuration options to send to the logger * @return void */ public static function setLogger($config) { self::$logger = new Logger(compact('config')); }