Configure winston
This commit is contained in:
parent
f81083dec6
commit
e4b1bcc677
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
import formats from '$lib/common/supportedFormats.json';
|
import formats from '$lib/common/supportedFormats.json';
|
||||||
|
import winston from 'winston';
|
||||||
|
|
||||||
|
export const logger = winston.createLogger({
|
||||||
|
level: 'debug',
|
||||||
|
format: winston.format.json(),
|
||||||
|
transports: [new winston.transports.Console()],
|
||||||
|
});
|
||||||
const formatMime = new Map(Object.entries(formats))
|
const formatMime = new Map(Object.entries(formats))
|
||||||
export const isURLValid = (url: string) => {
|
export const isURLValid = (url: string) => {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue