/** * 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())); }
/** * 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); }