Skip to content

mta-logger 1.1.0

Install from the command line:
Learn more about npm packages
$ npm install @nayotta/mta-logger@1.1.0
Install via package.json:
"@nayotta/mta-logger": "1.1.0"

About this version

@nayotta/mta-logger

Build and LintNode.js Package

A javascript logger module.

example

common logger

import { Logger } from '@nayotta/mta-logger'

const logger = new Logger({
	level: 'all'
})

logger.info('init app', 'app start on port', 8080)

// print
// [info] 2021-10-13T15:20:19:042 [init app] app start on port 8080

position logger

import { Logger } from '@nayotta/mta-logger'

const logger = new Logger({
	level: 'all',
	position: 'func_name'
})

logger.info('running by port', 8080)

// print
// [info] 2021-10-13T15:20:19:042 [func_name] running by port 8080

Details


Assets

  • mta-logger-1.1.0-npm.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0