import log4js from "log4js";
const setupLogger = async (options) => {
    log4js.configure({
        appenders: {
            app: {
                backups: 5,
                filename: `${options.config.configDir}/logs/cli.log`,
                maxLogSize: 20000000,
                minLevel: "debug",
                type: "file"
            }
        },
        categories: {
            default: {
                appenders: [
                    "app",
                ],
                level: "debug"
            }
        }
    });
};
export default setupLogger;
