Log object acquisition and debug in JS


Examples are as follows:

var log = new Logger('***.js')
if (log.isDebugEnabled()) {
                    log.debug('xxxxx');
                }