mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-22 17:06:53 +08:00
Logger中LogType枚举对外开放,可方便控制日志打印开关
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { log } from "cc";
|
||||
|
||||
enum LogType {
|
||||
export enum LogType {
|
||||
/** 网络层日志 */
|
||||
Net = 1,
|
||||
/** 数据结构层日志 */
|
||||
@@ -52,8 +52,10 @@ export class Logger {
|
||||
* @example
|
||||
oops.log.setTags(LogType.View|LogType.Business)
|
||||
*/
|
||||
static setTags(tag: LogType = 0) {
|
||||
this.tags = tag;
|
||||
static setTags(tag: LogType = null!) {
|
||||
if (tag) {
|
||||
this.tags = tag;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user