@bogeychan/elysia-logger
Advanced tools
Comparing version 0.1.5 to 0.1.6
import type { RouteSchema } from "elysia"; | ||
import type { ElysiaLoggerContext, _INTERNAL_ElysiaLoggerPluginAutoLoggingState } from "../types"; | ||
import type { ElysiaLoggerContext, _INTERNAL_ElysiaLoggerPluginAutoLoggingState } from "../types.js"; | ||
export declare const formatters: { | ||
@@ -4,0 +4,0 @@ log(object: Record<string, unknown>): { |
@@ -1,2 +0,2 @@ | ||
import { serializeRequest } from "./serializers"; | ||
import { serializeRequest } from "./serializers.js"; | ||
export const formatters = { | ||
@@ -3,0 +3,0 @@ log(object) { |
@@ -1,2 +0,2 @@ | ||
export * from './formatters'; | ||
export * from './serializers'; | ||
export * from "./formatters.js"; | ||
export * from "./serializers.js"; |
@@ -1,2 +0,2 @@ | ||
export * from './formatters'; | ||
export * from './serializers'; | ||
export * from "./formatters.js"; | ||
export * from "./serializers.js"; |
@@ -1,4 +0,4 @@ | ||
import pino from "pino"; | ||
import { pino } from "pino"; | ||
import { Elysia } from "elysia"; | ||
import type { ElysiaLogger, StandaloneLoggerOptions, ElysiaFileLoggerOptions, ElysiaStreamLoggerOptions, _INTERNAL_Writeonly, _INTERNAL_ElysiaLoggerPlugin, _INTERNAL_ElysiaLoggerPluginAutoLoggingState, _INTERNAL_ElysiaLoggerPluginAutoLoggingEnabledOptions, _INTERNAL_ElysiaLoggerPluginAutoLoggingDisabledOptions } from "./types"; | ||
import type { ElysiaLogger, StandaloneLoggerOptions, ElysiaFileLoggerOptions, ElysiaStreamLoggerOptions, _INTERNAL_Writeonly, _INTERNAL_ElysiaLoggerPlugin, _INTERNAL_ElysiaLoggerPluginAutoLoggingState, _INTERNAL_ElysiaLoggerPluginAutoLoggingEnabledOptions, _INTERNAL_ElysiaLoggerPluginAutoLoggingDisabledOptions } from "./types.js"; | ||
/** | ||
@@ -40,4 +40,4 @@ * The StreamLogger is used to write log entries to a stream such as the console output (default behavior). | ||
}> | _INTERNAL_ElysiaLoggerPlugin<_INTERNAL_Writeonly<_INTERNAL_ElysiaLoggerPluginAutoLoggingState>>>; | ||
export * from "./config"; | ||
export type { InferContext } from "./types"; | ||
export * from "./config/index.js"; | ||
export type { InferContext } from "./types.js"; | ||
export { pino } from "pino"; |
@@ -1,2 +0,2 @@ | ||
import pino from "pino"; | ||
import { pino } from "pino"; | ||
import { Elysia } from "elysia"; | ||
@@ -11,3 +11,3 @@ /** | ||
*/ | ||
import { formatters, serializers } from "./config"; | ||
import { formatters, serializers } from "./config/index.js"; | ||
export function logger(options = {}) { | ||
@@ -97,3 +97,3 @@ return plugin(options); | ||
const plugin = (options) => into.bind(createPinoLoggerInternal(options))(options); | ||
export * from "./config"; | ||
export * from "./config/index.js"; | ||
export { pino } from "pino"; |
{ | ||
"name": "@bogeychan/elysia-logger", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A plugin for Elysia.js for logging using the pino library", | ||
@@ -5,0 +5,0 @@ "author": { |
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
18525