1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

add logger and daily rotating log files

This commit is contained in:
Ondrej Synacek
2019-10-24 10:21:41 +02:00
parent 610ad61097
commit 06469d3236
11 changed files with 317 additions and 35 deletions

View File

@ -31,7 +31,12 @@ const parseEventData = (eventData) => {
}
}
const parseUsingLDJSONData = (html) => {
const parseUsingLDJSONData = (html, { logger }) => {
logger.log({
message: 'Parsing using LDJSON parser',
level: 'info',
service: 'parser',
})
try {
// NOTE: Mobile web should have serialized
// event info in one of the script tags