You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 💢 Make logging friendlier, simpler and use emojis in your messages. Try logger!
6
6
7
7
## Installation
8
8
9
-
js-library-boilerplate is available on npm/yarn:
9
+
logger is available on npm/yarn:
10
10
11
11
```bash
12
-
$ npm install js-library-boilerplate --save
13
-
$ yarn add js-library-boilerplate
12
+
$ npm install logger.js --save
13
+
$ yarn add logger.js
14
14
```
15
15
16
16
## Usage
17
17
18
18
### With ES6/import
19
19
20
20
```js
21
-
import{ sum } from'js-library-boilerplate';
21
+
importLoggerfrom'logger.js';
22
22
23
-
sum(2, 2); // => 4
23
+
Logger.success('Success message example.');
24
+
Logger.error('Error message example.');
25
+
Logger.warn('Warning message example.');
26
+
Logger.info('Information message example.');
24
27
```
25
28
26
29
### With require
27
30
28
31
```js
29
-
constsum=require('js-library-boilerplate').sum;
32
+
constLogger=require('logger.js');
30
33
31
-
sum(2, 2); // => 4
34
+
Logger.success('Success message example.');
35
+
Logger.error('Error message example.');
36
+
Logger.warn('Warning message example.');
37
+
Logger.info('Information message example.');
32
38
```
33
39
34
40
## Contributing
@@ -37,21 +43,21 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduc
37
43
38
44
## Changelog
39
45
40
-
This project adheres to [Semantic Versioning](https://semver.org/). Every release, along with the migration instructions, is documented on the Github [Releases](https://github.com/codevor/js-library-boilerplate/releases) page.
46
+
This project adheres to [Semantic Versioning](https://semver.org/). Every release, along with the migration instructions, is documented on the Github [Releases](https://github.com/codevor/logger.js/releases) page.
41
47
42
48
## Bugs and Sugestions
43
49
44
-
Report bugs or do suggestions using the [issues](https://github.com/codevor/js-library-boilerplate/issues).
50
+
Report bugs or do suggestions using the [issues](https://github.com/codevor/logger.js/issues).
0 commit comments