Beispiel #1
0
 static function init($key, $options = array())
 {
     self::$epoch = self::array_get($options, 'epoch', self::$epoch);
     self::$host = self::array_get($options, 'host', self::$host);
     self::$key = $key;
     self::$log_dir = self::array_get($options, 'log_dir', self::$log_dir);
     self::$to_stderr = self::array_get($options, 'to_stderr', self::$to_stderr);
     self::$use_cron = self::array_get($options, 'use_cron', self::$use_cron);
     self::is_log_dir_writable();
 }
Beispiel #2
0
 static function init ($key, $options = array())
 {
     self::$epoch = self::array_get($options, 'epoch', self::$epoch);
     self::$host = self::array_get($options, 'host', self::$host);
     self::$key = $key;
     self::$log_dir = self::array_get($options, 'log_dir', self::$log_dir);
     self::$to_stderr = self::array_get($options, 'to_stderr', self::$to_stderr);
     self::$use_cron = self::array_get($options, 'use_cron', self::$use_cron);
     self::$stderr = fopen('php://stderr', 'w'); // opens stderr in write mode
     self::is_log_dir_writable();
 }