public function __invoke(ServerRequestInterface $request, ResponseInterface $response) { // static::log('This is the message to be logged.'); // // $logger = static::createLogger('product'); // $logger->info('This is the product log!!!!!!!!!!!!!!!'); global $CONFIG; // TODO: check log configuration LoggerManager::configure(array('daily' => false)); $logger = LoggerManager::getDefaultInstance('App'); $logger->debug('####################no daily'); $CONFIG->logger = $logger; return $response; }