Options
All
  • Public
  • Public/Protected
  • All
Menu

Module logging

@dvelop-sdk/logging

npm (scoped) npm bundle size (scoped) GitHub license

This package contains functions for logging with OpenTelemetry.

Explore the docs »
Install via npm »
Check us out on GitHub »

Index

Type aliases

ProviderFn: (context: DvelopContext, event: DvelopLogEvent, level: DvelopLogLevel) => Promise<void>

Type declaration

    • (context: DvelopContext, event: DvelopLogEvent, level: DvelopLogLevel): Promise<void>
    • Type definition of logging providers.

      Parameters

      Returns Promise<void>

TransportFn: (statement: any) => Promise<void>

Type declaration

    • (statement: any): Promise<void>
    • Parameters

      • statement: any

      Returns Promise<void>

Functions

  • consoleTransportFactory(error?: boolean, _console?: Console): TransportFn
  • fileTransportFactory(path: string, _createWriteStream?: (path: PathLike, options: { flags: "a" }) => WriteStream): TransportFn

Generated using TypeDoc