gramps-graphql/gramps

View on GitHub
packages/rest-helpers/src/defaultLogger.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable no-console */
const time = () => `[${new Date().toISOString()}]`;
export default {
  info: msg => console.info(time(), msg),
  warn: msg => console.warn(time(), msg),
  error: msg => console.error(time(), msg),
};