silverstripe-fulltextsearch/src/Utils/Logging/SearchLogFactory.php

27 lines
541 B
PHP
Raw Normal View History

<?php
2017-04-21 02:27:01 +02:00
namespace SilverStripe\FullTextSearch\Utils\Logging;
use Psr\Log;
use Symbiote\QueuedJobs\Services\QueuedJob;
2015-11-21 07:19:20 +01:00
interface SearchLogFactory
{
/**
* Make a logger for a queuedjob
*
* @param QueuedJob $job
* @return Log\LoggerInterface
2015-11-21 07:19:20 +01:00
*/
public function getQueuedJobLogger($job);
2015-11-21 07:19:20 +01:00
/**
* Get an output logger with the given verbosity
*
* @param string $name
* @param bool $verbose
* @return Log\LoggerInterface
2015-11-21 07:19:20 +01:00
*/
public function getOutputLogger($name, $verbose);
}