22 lines
355 B
TypeScript
22 lines
355 B
TypeScript
import Report from "../net/Report";
|
|
|
|
export default class SKLogger {
|
|
|
|
static isDebug:boolean=true;
|
|
|
|
static warn(msg:any) {
|
|
cc.warn(msg);
|
|
Report.report(msg);
|
|
}
|
|
|
|
static info(msg:any){
|
|
cc.log(msg);
|
|
}
|
|
|
|
static debug(msg:any){
|
|
if(!this.isDebug){
|
|
return;
|
|
}
|
|
cc.log(msg);
|
|
}
|
|
} |