@bogeychan/elysia-logger
Advanced tools
Comparing version 0.0.1 to 0.0.2
import Elysia from 'elysia'; | ||
import type { LoggerOptions, FileLoggerOptions, StreamLoggerOptions } from './types'; | ||
export declare const logger: (options: StreamLoggerOptions) => (app: Elysia) => Elysia<{ | ||
export declare const logger: (options?: StreamLoggerOptions) => (app: Elysia) => Elysia<{ | ||
store: {}; | ||
@@ -5,0 +5,0 @@ request: { |
import pino from 'pino'; | ||
import { formatters, serializers } from './config'; | ||
export const logger = (options) => plugin(options); | ||
export const logger = (options = {}) => plugin(options); | ||
export const fileLogger = (options) => plugin(options); | ||
@@ -5,0 +5,0 @@ export function createPinoLogger(options) { |
{ | ||
"name": "@bogeychan/elysia-logger", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A plugin for elysia for logging using the pino library", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -23,3 +23,3 @@ import pino from 'pino'; | ||
*/ | ||
export const logger = (options: StreamLoggerOptions) => plugin(options); | ||
export const logger = (options: StreamLoggerOptions = {}) => plugin(options); | ||
@@ -26,0 +26,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10453