Socket
Book a DemoInstallSign in
Socket

@futoin/log

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@futoin/log

Extended log face and service implementations

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

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

ConsoleFaceLogFace

Console-based AuditLog Native interface

Register with ConsoleFace.register().

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

Members

FutoInLog

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

Log

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

Functions

initFace(asi, ccm, [options])

Initial client

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.console]objectConsole
[info.options.logTime]objectfalseenable timestamps
[info.options.logLevel]objectdebugdebug level

consoleFace.msg(lvl, txt)

Log message

Kind: instance method of ConsoleFace
Overrides: msg

ParamTypeDescription
lvlstringdebug
txtstringmessage to log

consoleFace.hexdump(lvl, txt, data)

Log message

Kind: instance method of ConsoleFace
Overrides: hexdump

ParamTypeDescription
lvlstringdebug
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
[options]objectoptions
[options.logType]stringtype of logger

documented by jsdoc-to-markdown.

Keywords

futoin

FAQs

Package last updated on 14 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts