refactor
- add documentation for EF API calling implementation - greater adherence to standards - better DI logic
This commit is contained in:
@@ -8,7 +8,7 @@ use Monolog\Formatter\JsonFormatter;
|
||||
|
||||
class LoggerFactory {
|
||||
public static function create(string $name = null): Logger {
|
||||
$ident = $name ?? Config::get('log_ident', 'api');
|
||||
$ident = $name ?? 'api';
|
||||
$logger = new Logger($ident);
|
||||
$handler = new SyslogHandler($ident, LOG_USER);
|
||||
$handler->setFormatter(new JsonFormatter());
|
||||
|
||||
Reference in New Issue
Block a user