Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
Signed-off-by: SamYuan1990 <yy19902439@126.com>
  • Loading branch information
SamYuan1990 committed Jan 18, 2021
1 parent 6a75474 commit 3e6e8e3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app.js
Expand Up @@ -15,15 +15,15 @@ const newUIRouter = require('./routes/newUI');
const app = express();
const log4js = require('log4js');

/*log4js.configure({
log4js.configure({
appenders: {app: {type: 'file', filename: 'logger.log'}},
categories: {default: {appenders: ['app'], level: 'info'}}
});*/
});

//const logger = log4js.getLogger();
//logger.level = "debug";

const logger = log4js.getLogger();
logger.level = "debug";
//logger.debug("Some debug messages");
//const logger = log4js.getLogger('app');
const logger = log4js.getLogger('app');
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.engine('html', ejs.__express);
Expand Down

0 comments on commit 3e6e8e3

Please sign in to comment.