lib/Analog/Analog.php
private static function get_struct ($message, $level) {
		if (self::$machine === null) {
			self::$machine = (isset ($_SERVER['SERVER_ADDR'])) ? $_SERVER['SERVER_ADDR'] : 'localhost';
		}

		$dt = new \DateTime ('now', new \DateTimeZone (self::$timezone));

		return array (
			'machine' => self::$machine,
			'date' => $dt->format (self::$date_format),
			'level' => $level,
			'message' => $message
		);
	}
private static function get_struct ($message, $level) {
		if (self::$machine === null) {
			self::$machine = (isset ($_SERVER['SERVER_ADDR'])) ? $_SERVER['SERVER_ADDR'] : 'localhost';
		}

		$dt = new \DateTime ('now', new \DateTimeZone (self::$timezone));

		return array (
			'machine' => self::$machine,
			'date' => $dt->format (self::$date_format),
			'level' => $level,
			'message' => $message
		);
	}
private static function get_struct ( $ message , $ level ) { if ( self :: $ machine === null ) { self :: $ machine = ( isset ( $ _SERVER [ 'SERVER_ADDR' ] ) ) ? $ _SERVER [ 'SERVER_ADDR' ] : 'localhost' ; } $ dt = new \ DateTime ( 'now' , new \ DateTimeZone ( self :: $ timezone ) ) ; return array ( 'machine' => self :: $ machine , 'date' => $ dt -> format ( self :: $ date_format ) , 'level' => $ level , 'message' => $ message ) ; }
Get the log info as an associative array.
Get the log info as an associative array .