INNER CODE UNIT · JavaScript
setGlobalLog
SuperMonster003/Ant-Forest · ant-forest-launcher.js:222
function setGlobalLog() {
$$cfg.autojsGlobalLogSwitch && consolex.setGlobalLogConfig({
file: $$cfg.autojsGlobalLogConfigPath + 'auto.js-log.log',
filePattern: $$cfg.autojsGlobalLogConfigFilePattern,
maxBackupSize: $$cfg.autojsGlobalLogConfigMaxBackupSize,
maxFileSize: $$cfg.autojsGlobalLogConfigMaxFileSize << 10,
});
consolex.debug.switchSet($$flag.show_debug_info);
}
function appSetter() {
return {
setTask() {
/**
* @param {number} du_minute
* @param {{isToast?: boolean, isAsync?: boolean}} [options]
*/
$$app.setPostponedTask = function (du_minute, options) {