Exemplo n.º 1
0
 private function __construct()
 {
     $this->CACHE = new SimpleDataCache();
     $this->emptyLogger = new PsLoggerEmpty();
     /*
      * Вычислим признак включённости логирования.
      */
     $this->enabled = PsDefines::isLoggingEnabled();
     if ($this->enabled) {
         $this->writer = AbstractLogWriter::inst(PsDefines::getLoggingStream());
         $this->writer->initAndWriteFirstLog();
         PsShotdownSdk::registerDestructable($this, PsShotdownSdk::PsLogger);
     }
 }