@interopio/cli
Version:
Interop.io CLI - a command line for creating Interop.io applications
24 lines (23 loc) • 572 B
JavaScript
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;