@gdksoftware/logging
Version:
Logging package
31 lines (22 loc) • 871 B
Markdown
This is a simple wrapper to the default console log. It makes it easier to choose which messages should be shown in the terminal.
```sh
npm install @gdksoftware/logging
yarn add @gdksoftware/logging
bower install @gdksoftware/logging --save
```
```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)
```
The import differs For TypeScript, but you can use it like the common Javascript example.
```typescript
import Logging from "../helpers/logging";
```
Package built by [GDK Software NL]('http://www.gdksoftware.nl) / [GDK Software UK]('http://www.gdksoftware.co.uk)