function log(level, message, meta) {
    console.log(JSON.stringify({
        time: new Date().toISOString(),
        level: level,
        message: message,
        meta: meta || {},
    }))
}

module.exports = {
    info: function (message, meta) { log('INFO', message, meta) },
    warn: function (message, meta) { log('WARN', message, meta) },
    error: function (message, meta) { log('ERROR', message, meta) },
}
