npm.io
1.0.3 • Published 8 years ago

@gdksoftware/logging

Licence
ISC
Version
1.0.3
Deps
2
Size
4 kB
Vulns
0
Weekly
0

@gdksoftware/mysql

This is a simple wrapper to the default console log. It makes it easier to choose which messages should be shown in the terminal.

Installation

npm install @gdksoftware/logging
yarn add @gdksoftware/logging
bower install @gdksoftware/logging --save

Usage

Javascript
const Logging = require('@gdksoftware/logging');

loglevel = LogLevel.Debug

Logging.info('This is my info message', extraParam1, extraParam2);                    
Logging.error('This is my info message', extraParam1, extraParam2)
TypeScript

The import differs For TypeScript, but you can use it like the common Javascript example.

import Logging from "../helpers/logging";

Package built by GDK Software NL / GDK Software UK