[READ-ONLY] Mirror of https://github.com/probablykasper/yt-email-notifier. macOS menubar app for YouTube upload notification emails
email menubar notifications tray youtube
0

Configure Feed

Select the types of activity you want to include in your feed.

Logging files are now rolloing, max 2mb

Kasper (Aug 29, 2020, 5:20 PM +0200) 7844a34d 2c21c8bd

+4
+4
src/logger.js
··· 1 1 const log4js = require('log4js') 2 2 const paths = require('./paths') 3 3 4 + const kb = 1024 5 + const mb = 1024*kb 4 6 const config = { 5 7 appenders: { 6 8 everything: { 7 9 type: 'file', 8 10 filename: paths.logfile, 11 + maxLogSize: 2*mb, 9 12 layout: { type: 'pattern', pattern: '%d{yyyy-MM-dd hh:mm:ss} %p %m' }, 10 13 }, 11 14 console: { ··· 15 18 bad: { 16 19 type: 'file', 17 20 filename: paths.logfileBad, 21 + maxLogSize: 2*mb, 18 22 layout: { type: 'pattern', pattern: '%d{yyyy-MM-dd hh:mm:ss} %p %m' }, 19 23 }, 20 24 badFilter: { type: 'logLevelFilter', appender: 'bad', level: 'warn' },