Browse Source

Add CliLogger.generateOutString() for extend this class.

namespace
Alexander Demidov 11 years ago
parent
commit
a51545268d
  1. 7
      logger/CliLogger.php

7
logger/CliLogger.php

@ -14,8 +14,13 @@ class CliLogger extends Logger
{
// Заменяем окончания строк на их символы
$message = str_replace(array("\r", "\n"), array('\r', '\n'), $message);
$out = microtime(true) . " \t: " . $this->pid . trim($message) . PHP_EOL;
$out = $this->generateOutString($message);
print($out);
}
protected function generateOutString($message)
{
return microtime(true) . " \t: " . $this->pid . trim($message) . PHP_EOL;
}
}
Loading…
Cancel
Save