浏览代码

change default log level if logger is not setup
change default log channel if logger is not setup

CauseFX 5 年之前
父节点
当前提交
108228a76a
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      api/classes/logger.class.php

+ 2 - 2
api/classes/logger.class.php

@@ -26,8 +26,8 @@ class OrganizrLogger extends LoggerBuilder
 	public function build(): Logger
 	{
 		if (!$this->isReady) {
-			$this->setChannel(self::DEFAULT_CHANNEL);
-			$this->setLogLevel(self::INFO);
+			$this->setChannel('Organizr');
+			$this->setLogLevel(self::DEBUG);
 			$this->setMaxFiles(1);
 		}
 		return new Logger($this);