@@ -39,7 +39,7 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $this->software = 'Syslog'; |
| 41 | 41 | $this->prettyName = 'Syslog'; |
| 42 | - // $this->timeFormat = 'M j h:i:s'; |
|
| 42 | + // $this->timeFormat = 'M j h:i:s'; |
|
| 43 | 43 | |
| 44 | 44 | $this->addFormat('default', '%t %h %s %m'); |
| 45 | 45 | $this->defaultFormat = '%t %h %s %m'; |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $this->addPath("/var/log/"); |
| 48 | 48 | $this->addFile("fail2ban.log"); |
| 49 | 49 | |
| 50 | - // '%d' => '(?P<date>[\d \-,:]+)', |
|
| 50 | + // '%d' => '(?P<date>[\d \-,:]+)', |
|
| 51 | 51 | $this->addPattern('%t', '(?P<time>[\d \-:]+)(,\d+)'); |
| 52 | 52 | $this->addPattern('%s', '(?P<service>[\w\d\. :]+(|\s+))'); |
| 53 | 53 | |
@@ -173,14 +173,14 @@ |
||
| 173 | 173 | parent::__construct($format, $factory); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | - /** |
|
| 177 | - * Sets the log format |
|
| 178 | - * |
|
| 179 | - * @access public |
|
| 180 | - * @param string $format |
|
| 181 | - * |
|
| 182 | - * @return void |
|
| 183 | - */ |
|
| 176 | + /** |
|
| 177 | + * Sets the log format |
|
| 178 | + * |
|
| 179 | + * @access public |
|
| 180 | + * @param string $format |
|
| 181 | + * |
|
| 182 | + * @return void |
|
| 183 | + */ |
|
| 184 | 184 | public function setFormat(string $format): void |
| 185 | 185 | { |
| 186 | 186 | parent::setFormat($format); |