Nanook

Nanook

  • Docs
  • API
  • GitHub

›Logger

Logger

  • Logger Interface
  • Logger Memory

Model

  • Table Interface
  • Testcase Definition Interface
  • Todo Meta
  • Todo Static
  • Todo Generator
  • Todo Reference

Model Decision

  • Base Section Definition
  • Base Single Row Section Definition
  • Execute Section Definition
  • Never Execute Section Definition
  • Multiplicity Section Definition
  • Summary Section Definition
  • Field Section Definition
  • Field Sub Section Definition
  • Multi Row Section Definition
  • Tag Section Definition
  • Filter Section Definition
  • Generator Switch Section Definition
  • Testcase Definition Decision
  • Table Decision
  • Section Types
  • Validate Double
  • Validate Helper
  • Validate Missing

Model Matrix

  • Testcase Definition Matrix
  • Table Matrix

Importer xlsx

  • Importer xlsx

File Processor

  • Importer Interface
  • Parser Interface
  • Interface Filter
  • Simple Array Filter
  • Simple Array Ignore Filter
  • Parser Constants
  • Parser Decision Constants
  • Parser Decision
  • Parser Matrix Constants
  • Parser Matrix
  • Parser Specification Constants
  • Parser Specification
  • Parser Specification Converter

Data Generator

  • Data Generator Interface
  • Data Generator Base
  • Service Registry
  • Generator Faker

Processor

  • Interface Processor
  • Interface Writer
  • Node
  • Reference
  • Testcase Data
  • Processor
  • writeMetaData
  • writeStaticData
  • utilCartesian

Logger Interface

LoggerInterface

Defines the interface of a logger used by all the modules.

Kind: global class

  • LoggerInterface
    • .level
    • .clear()
    • ._getLevelNumber(level) ⇒ number
    • ._log(level, arg)
    • ._writeLog(level, entry)
    • .debug(message) ⇒ Promise
    • .info(message) ⇒ Promise
    • .warning(message) ⇒ Promise
    • .error(message) ⇒ Promise
    • .fatal(message) ⇒ Promise
    • ._getTime()

loggerInterface.level

sets a new log level

Kind: instance property of LoggerInterface

ParamTypeDescription
levelnumber/stringThe logLevel as number or String value

loggerInterface.clear()

Clears all the existing log entries Placeholder for the implementing loggers

Kind: instance method of LoggerInterface

loggerInterface._getLevelNumber(level) ⇒ number

returns the logLevel as a number

Kind: instance method of LoggerInterface
Returns: number - num The loglevel as a number

ParamTypeDescription
levelstringThe loglevel as a string

loggerInterface._log(level, arg)

Do the logging

Kind: instance method of LoggerInterface

ParamTypeDescription
levelstringThe log level of the current entry
argstring \objectThe data to log

loggerInterface._writeLog(level, entry)

Writes the log, or do what ever. At this point in time the logs with the wrong level arte already filtered

Kind: instance method of LoggerInterface

ParamTypeDescription
levelstringThe log level of the current entry
entrystring \objectThe data to log

loggerInterface.debug(message) ⇒ Promise

Logs the given message with the level 'debug'

Kind: instance method of LoggerInterface
Returns: Promise - promise A promise when the log is written

ParamTypeDescription
messagestring/objectThe message or data to log

loggerInterface.info(message) ⇒ Promise

Logs the given message with the level 'info'

Kind: instance method of LoggerInterface
Returns: Promise - promise A promise when the log is written

ParamTypeDescription
messagestring/objectThe message or data to log

loggerInterface.warning(message) ⇒ Promise

Logs the given message with the level 'warning'

Kind: instance method of LoggerInterface
Returns: Promise - promise A promise when the log is written

ParamTypeDescription
messagestring/objectThe message or data to log

loggerInterface.error(message) ⇒ Promise

Logs the given message with the level 'error'

Kind: instance method of LoggerInterface
Returns: Promise - promise A promise when the log is written

ParamTypeDescription
messagestring/objectThe message or data to log

loggerInterface.fatal(message) ⇒ Promise

Logs the given message with the level 'fatal'

Kind: instance method of LoggerInterface
Returns: Promise - promise A promise when the log is written

ParamTypeDescription
messagestring/objectThe message or data to log

loggerInterface._getTime()

Returns the current time in the format used by this logger

Kind: instance method of LoggerInterface

Logger Memory →
  • LoggerInterface
    • loggerInterface.level
    • loggerInterface.clear()
    • loggerInterface._getLevelNumber(level) ⇒ number
    • loggerInterface._log(level, arg)
    • loggerInterface._writeLog(level, entry)
    • loggerInterface.debug(message) ⇒ Promise
    • loggerInterface.info(message) ⇒ Promise
    • loggerInterface.warning(message) ⇒ Promise
    • loggerInterface.error(message) ⇒ Promise
    • loggerInterface.fatal(message) ⇒ Promise
    • loggerInterface._getTime()
Nanook
Docs
TutorialsGuide
More
ImprintPrivacy PolicyGitHubStar
Copyright © 2022 Nanook.io