示例#1
0
 /**
  * Test the info() method.
  *
  * @return void
  */
 public function testInfoMethod()
 {
     $logger = new Logger(LoggerTest::CHANNEL_NAME);
     $logger->addHandler(new DummyHandler());
     $logger->info("testmessage", array(new \stdClass()));
 }
示例#2
0
 /**
  * Appends the passed thread context.
  *
  * @param string $threadContext The thread context to append
  *
  * @return void
  * @see \AppserverIo\Logger\ThreadSafeLoggerInterface::appendThreadContext()
  */
 public function appendThreadContext($threadContext)
 {
     Logger::$threadContext = sprintf('%s-%s', Logger::$threadContext, $threadContext);
 }