Authored by whb

UDP

@@ -51,10 +51,10 @@ class UdpLog @@ -51,10 +51,10 @@ class UdpLog
51 'file'=> $file, 51 'file'=> $file,
52 'line'=> $line, 52 'line'=> $line,
53 'message' => $message, 53 'message' => $message,
54 - 'meta' => serialize($meta) 54 + 'meta' => serialize($meta)
55 ); 55 );
56 //make a line 56 //make a line
57 - $string = implode('|', $tags);//format: time|level|host|file|line|message|meta 57 + $string = implode('|', $tags); //format: time|level|host|file|line|message|meta
58 if(self::RECORD_MODE == self::RECORD_MODE_UDP) { 58 if(self::RECORD_MODE == self::RECORD_MODE_UDP) {
59 self::send($string); 59 self::send($string);
60 } 60 }
@@ -126,36 +126,36 @@ class UdpLog @@ -126,36 +126,36 @@ class UdpLog
126 /** 126 /**
127 * info log 127 * info log
128 * @param $message 128 * @param $message
129 - * @param $meta 129 + * @param mixed $meta
130 */ 130 */
131 - public static function info($message,$meta='') {  
132 - self::procLog(__METHOD__,$message,debug_backtrace(),$meta); 131 + public static function info($message, $meta = '') {
  132 + self::procLog(__METHOD__, $message, debug_backtrace(), $meta);
133 } 133 }
134 134
135 /** 135 /**
136 * warn log 136 * warn log
137 * @param $message 137 * @param $message
138 - * @param $meta 138 + * @param mixed $meta
139 */ 139 */
140 - public static function warn($message,$meta='') {  
141 - self::procLog(__METHOD__,$message,debug_backtrace(),$meta); 140 + public static function warn($message, $meta = '') {
  141 + self::procLog(__METHOD__, $message, debug_backtrace(), $meta);
142 } 142 }
143 143
144 /** 144 /**
145 * error log 145 * error log
146 * @param $message 146 * @param $message
147 - * @param $meta 147 + * @param mixed $meta
148 */ 148 */
149 - public static function error($message,$meta='') {  
150 - self::procLog(__METHOD__,$message,debug_backtrace(),$meta); 149 + public static function error($message, $meta = '') {
  150 + self::procLog(__METHOD__, $message, debug_backtrace(), $meta);
151 } 151 }
152 152
153 /** 153 /**
154 * debug log 154 * debug log
155 * @param $message 155 * @param $message
156 - * @param $meta 156 + * @param mixed $meta
157 */ 157 */
158 - public static function debug($message,$meta='') {  
159 - self::procLog(__METHOD__,$message,debug_backtrace(),$meta); 158 + public static function debug($message, $meta = '') {
  159 + self::procLog(__METHOD__, $message, debug_backtrace(), $meta);
160 } 160 }
161 } 161 }