Store entities completely in the database

This commit is contained in:
Fredrik Adelöw
2020-05-20 14:21:20 +02:00
parent 645bee1b4c
commit 44844af0bd
20 changed files with 690 additions and 257 deletions
@@ -15,3 +15,4 @@
*/
export * from './rootLogger';
export * from './voidLogger';
@@ -0,0 +1,27 @@
/*
* Copyright 2020 Spotify AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { PassThrough } from 'stream';
import winston, { Logger } from 'winston';
/**
* A logger that just throws away all messages.
*/
export function getVoidLogger(): Logger {
return winston.createLogger({
transports: [new winston.transports.Stream({ stream: new PassThrough() })],
});
}