Skip to main content Link Search Menu Expand Document (external link)

ServiceLogger overview

Added in v0.1.0


Table of contents


adapters

toClientLogger

Signature

export declare const toClientLogger: (logger: ServiceLogger) => Effect.Effect<Logger>

Added in v0.1.0

constructors

ServiceLoggerConstructorProps (type alias)

Signature

export type ServiceLoggerConstructorProps = {
  readonly trace?: (...message: ReadonlyArray<any>) => Effect.Effect<void, never, never>
  readonly debug: (...message: ReadonlyArray<any>) => Effect.Effect<void, never, never>
  readonly info: (...message: ReadonlyArray<any>) => Effect.Effect<void, never, never>
  readonly warn: (...message: ReadonlyArray<any>) => Effect.Effect<void, never, never>
  readonly error: (...message: ReadonlyArray<any>) => Effect.Effect<void, never, never>
}

Added in v0.1.0

defaultServiceLogger

Signature

export declare const defaultServiceLogger: ServiceLogger

Added in v0.1.0

make

Signature

export declare const make: (props: ServiceLoggerConstructorProps) => ServiceLogger

Added in v0.1.0

models

ServiceLogger (interface)

Signature

export interface ServiceLogger extends ServiceLoggerConstructorProps {
  readonly [TypeId]: TypeId
}

Added in v0.1.0

type ids

TypeId

Signature

export declare const TypeId: typeof TypeId

Added in v0.1.0

TypeId (type alias)

Signature

export type TypeId = typeof TypeId

Added in v0.1.0