refactor
- add documentation for EF API calling implementation - greater adherence to standards - better DI logic
This commit is contained in:
1 parent
250ee892dc
commit
1766057cb9
13 files changed
+235
-57
No files matched your search
@@ -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