Skip to content

Commit 4a8b562

Browse files
committed
Change package name
1 parent c621c7e commit 4a8b562

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 MONK Software
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

lib/log.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const _loggersByName = {}
6969
* Can obtain child loggers by calling .getLogger, they will inherit
7070
* parent's options.
7171
*/
72-
class MonkLogger extends logLevel.constructor {
72+
class MonLogger extends logLevel.constructor {
7373
constructor (name, level, options = {}) {
7474
super(name, level)
7575
this.options = Object.assign({}, options, defaultLogLevelOptions)
@@ -107,7 +107,7 @@ class MonkLogger extends logLevel.constructor {
107107
}
108108
let logger = _loggersByName[name]
109109
if (!logger) {
110-
logger = _loggersByName[name] = new MonkLogger(
110+
logger = _loggersByName[name] = new MonLogger(
111111
name, level || this.getLevel(), Object.assign({}, this.options, options))
112112
}
113113
return logger
@@ -116,7 +116,7 @@ class MonkLogger extends logLevel.constructor {
116116

117117
prefix.reg(logLevel)
118118

119-
const defaultLogger = new MonkLogger('root')
119+
const defaultLogger = new MonLogger('root')
120120
defaultLogger.getLoggers = () => _loggersByName
121121

122122
// Export default logger. Can be used directly, or can be used

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "monk-log",
3-
"version": "3.2.0",
2+
"name": "@monksoftware/monlog",
3+
"version": "4.0.0",
44
"private": false,
55
"engines": {
66
"node": ">=8.3.0"
77
},
8-
"description": "Logging library for Monk projects",
8+
"description": "Simple, sensible logging in one line.",
99
"main": "index.js",
1010
"types": "index.d.ts",
1111
"scripts": {
@@ -16,12 +16,11 @@
1616
"index.d.ts"
1717
],
1818
"keywords": [
19-
"monk",
2019
"log",
21-
"logger"
20+
"logging"
2221
],
23-
"author": "Monk Software",
24-
"license": "ISC",
22+
"author": "MONK Software",
23+
"license": "MIT",
2524
"dependencies": {
2625
"@types/loglevel": "^1.5.4",
2726
"chalk": "^2.4.2",

0 commit comments

Comments
 (0)