JS中的log对象获取以及debug的写法介绍

  实例如下:

  

复制代码 代码如下:

  var log = new Logger('***.js')

  if (log.isDebugEnabled()) {

  log.debug('xxxxx');

  }