fix createLogger
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import type { TransportTargetOptions } from 'pino';
|
||||
import pino from 'pino';
|
||||
|
||||
export function createLogger({ target }: { target: string }) {
|
||||
export function createLogger({ dataset }: { dataset: string }) {
|
||||
const targets: TransportTargetOptions[] =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? [
|
||||
{
|
||||
target: '@baselime/pino-transport',
|
||||
options: { baselimeApiKey: process.env.BASELIME_API_KEY, target },
|
||||
options: { baselimeApiKey: process.env.BASELIME_API_KEY, dataset },
|
||||
},
|
||||
]
|
||||
: [
|
||||
|
||||
Reference in New Issue
Block a user