1 | # @nofrills/lincoln-console
|
2 |
|
3 | [![npm](https://img.shields.io/npm/v/@nofrills/lincoln-console.svg?style=flat-square)](https://www.npmjs.com/package/@nofrills/lincoln-console)
|
4 |
|
5 | # Install
|
6 |
|
7 | ```bash
|
8 | npm install --save @nofrills/lincoln-console
|
9 | ```
|
10 |
|
11 | # Quick Start
|
12 |
|
13 | ### Javascript
|
14 |
|
15 | ```javascript
|
16 | const logging = require('@nofrills/lincoln-console')
|
17 | const logger = logging.CreateLogger('myapp')
|
18 | logger.debug('Hello, cruel Javascript world!')
|
19 | ```
|
20 |
|
21 | ### Typescript
|
22 |
|
23 | ```typescript
|
24 | import { CreateLogger } from '@nofrills/lincoln-console'
|
25 | const logger = CreateLogger'myapp')
|
26 | logger.debug('Hello, cruel Typescript world!')
|
27 | ```
|
28 |
|
29 | # License
|
30 | Copyright 2018 NativeCode Development <opensource@nativecode.com>
|
31 |
|
32 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
33 | documentation files (the "Software"), to deal in the Software without restriction, including without
|
34 | limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
|
35 | Software, and to permit persons to whom the Software is furnished to do so, subject to the following
|
36 | conditions:
|
37 |
|
38 | The above copyright notice and this permission notice shall be included in all copies or substantial portions
|
39 | of the Software.
|
40 |
|
41 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
42 | TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
43 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
44 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
45 | DEALINGS IN THE SOFTWARE.
|