Skip to main content

LoggerManager

Class


Preview

new LoggerManager(builder, options)

Description

This class is used across the Hyper Fetch library to provide unified logging system with necessary setup per each builder.

We can set up the logging level based on available values. This manager enable to initialize the logging instance per individual module

like Builder, Command etc. Which can give you better feedback on the logging itself.

Import

import { LoggerManager } from "@better-typed/hyper-fetch"

Parameters

Name Type Default Value Description
builder BuilderInstance - -
options LoggerOptionsType - -

Methods

setSeverity()

setSeverity(severity)
Returns a void

Parameters

Name Type Default Value Description
severity SeverityType - -

init()

init(module)
Returns a LoggerType

Parameters

Name Type Default Value Description
module string - -

References