1.1.3 • Published 4 years ago

@futoin/log v1.1.3

Weekly downloads
11
License
Apache-2.0
Repository
github
Last release
4 years ago

About

This is a set of additional implementations of FTN9 AuditLog for various purposes.

Alternative implementation of:

FTN9: FutoIn Interface - AuditLog
Version: 1.0 (client)

Spec: FTN9: FutoIn Interface - AuditLog v1.x

Author: Andrey Galkin

Installation for Node.js

Command line:

$ npm install @futoin/log --save

API documentation

Classes

Members

Functions

ConsoleFace ⇐ LogFace

Console-based AuditLog Native interface

Register with ConsoleFace.register().

NOTE: this is a lightweight console logger suitable for stdout-based log collection.

Kind: global class
Extends: LogFace

new ConsoleFace(impl, info)

ConsoleFace setup

ParamTypeDefaultDescription
implSimpleCCMImplCCM impl
infoobjectinfo object
info.optionsobjectoptions
info.options.consoleobjectConsole
info.options.logTimeobjectfalseenable timestamps
info.options.logLevelobjectdebugdebug level

consoleFace.msg(lvl, txt)

Log message

Kind: instance method of ConsoleFace
Overrides: msg

ParamTypeDescription
lvlstringdebuginfowarnerrorsecurity
txtstringmessage to log

consoleFace.hexdump(lvl, txt, data)

Log message

Kind: instance method of ConsoleFace
Overrides: hexdump

ParamTypeDescription
lvlstringdebuginfowarnerrorsecurity
txtstringmessage to log
datastringraw data

FutoInLog

window.FutoInLog - Browser-only reference to futoin-log

Kind: global variable

Log

window.futoin.Log - Browser-only reference to futoin-log

Kind: global variable

initFace(asi, ccm, options)

Initial client

Kind: global function

ParamTypeDescription
asiAsyncStepsasync steps interface
ccmSimpleCCMCCM interface
optionsobjectoptions
options.logTypestringtype of logger

documented by jsdoc-to-markdown.

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

6 years ago

1.0.0

6 years ago