ac-logger 1.1.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.acsemver.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  repository: {
3
- url: 'https://github.com/mmpro/ac-logger'
3
+ url: 'https://github.com/admiralcloud/ac-logger'
4
4
  },
5
5
  changelogFile: __dirname + '/CHANGELOG.md',
6
6
  sections: [
package/CHANGELOG.md CHANGED
@@ -1,3 +1,44 @@
1
+ <a name="1.3.0"></a>
2
+
3
+ # [1.3.0](https://github.com/admiralcloud/ac-logger/compare/v1.2.1..v1.3.0) (2022-04-20 11:46:13)
4
+
5
+
6
+ ### Feature
7
+
8
+ * **Misc:** Add hrLine separator based on HTML tag hr | VD | [d5fffbbcac366d6cb1b326e261c7de35f2803243](https://github.com/admiralcloud/ac-logger/commit/d5fffbbcac366d6cb1b326e261c7de35f2803243)
9
+ Add hrLine separator based on HTML tag hr
10
+ ### Chores
11
+
12
+ * **release:** v1.2.0 [ci skip] | [207c29b2f41cebe905abf2634ab51c722a559d16](https://github.com/admiralcloud/ac-logger/commit/207c29b2f41cebe905abf2634ab51c722a559d16)
13
+
14
+ <a name="1.2.1"></a>
15
+
16
+ ## [1.2.1](https://github.com/admiralcloud/ac-logger/compare/v1.2.0..v1.2.1) (2022-04-20 11:44:27)
17
+
18
+
19
+ ### Bug Fix
20
+
21
+ * **App:** Packages updated | MP | [b1d460a98b1f7fd49d2fab5b1276df7106e87e9b](https://github.com/admiralcloud/ac-logger/commit/b1d460a98b1f7fd49d2fab5b1276df7106e87e9b)
22
+ Packages updated
23
+ Related issues: [undefined/undefined#master](undefined/browse/master)
24
+ <a name="1.2.0"></a>
25
+
26
+ # [1.2.0](https://github.com/admiralcloud/ac-logger/compare/v1.1.3..v1.2.0) (2021-11-18 17:51:01)
27
+
28
+
29
+ ### Feature
30
+
31
+ * **Misc:** Add hrLine separator based on HTML tag hr | VD | [d5fffbbcac366d6cb1b326e261c7de35f2803243](https://github.com/admiralcloud/ac-logger/commit/d5fffbbcac366d6cb1b326e261c7de35f2803243)
32
+ Add hrLine separator based on HTML tag hr
33
+ <a name="1.1.3"></a>
34
+
35
+ ## [1.1.3](https://github.com/admiralcloud/ac-logger/compare/v1.1.2..v1.1.3) (2021-10-09 10:23:50)
36
+
37
+
38
+ ### Bug Fix
39
+
40
+ * **App:** Package updates | MP | [7000f0447d77437f0055c06c1d2cff1bda70803a](https://github.com/admiralcloud/ac-logger/commit/7000f0447d77437f0055c06c1d2cff1bda70803a)
41
+ Package updates
1
42
  <a name="1.1.2"></a>
2
43
 
3
44
  ## [1.1.2](https://github.com/mmpro/ac-logger/compare/v1.1.1..v1.1.2) (2021-02-06 07:01:04)
package/index.js CHANGED
@@ -91,6 +91,11 @@ module.exports = (config) => {
91
91
  acLogger[level](message)
92
92
  }
93
93
 
94
+ const hrLine = (params) => {
95
+ const length = _.get(params, 'headLength', headLength)
96
+ acLogger.info(_.repeat('-', length))
97
+ }
98
+
94
99
  const bootstrapInfo = (params) => {
95
100
  const pwd = process.cwd()
96
101
  const pjson = require(path.resolve(pwd, 'package.json'))
@@ -98,7 +103,7 @@ module.exports = (config) => {
98
103
  const appName = _.get(params, 'appName', 'App name missing')
99
104
  const padLength = 15
100
105
  acLogger.info('')
101
- acLogger.info(_.repeat('-', headLength))
106
+ hrLine()
102
107
  listing({ field: 'Time', value: moment().format('YYYY-MM-DD HH:mm:ss'), padLength })
103
108
  listing({ field: 'Environment', value: environment, padLength })
104
109
  listing({ field: 'Version', value: pjson.version, padLength })
@@ -106,7 +111,7 @@ module.exports = (config) => {
106
111
  acLogger.info('')
107
112
  listing({ field: 'BOOTSTRAPPING', value: '\x1b[32mSuccessful\x1b[0m', padLength })
108
113
  acLogger.info(_.repeat('-', headLength))
109
- acLogger.info('')
114
+ hrLine()
110
115
  }
111
116
 
112
117
  /**
@@ -154,6 +159,7 @@ module.exports = (config) => {
154
159
  bootstrapInfo,
155
160
  serverInfo,
156
161
  acSESnfo,
157
- timeEnd
162
+ timeEnd,
163
+ hrLine
158
164
  }
159
165
  }
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "ac-logger",
3
- "author": "Mark Poepping (https://www.mmpro.de)",
3
+ "author": "Mark Poepping (https://www.admiralcloud.com)",
4
4
  "license": "MIT",
5
- "repository": "mmpro/ac-logger",
6
- "version": "1.1.2",
5
+ "repository": "admiralcloud/ac-logger",
6
+ "version": "1.3.0",
7
7
  "dependencies": {
8
- "lodash": "^4.17.20",
9
- "moment": "^2.29.1",
10
- "winston": "^3.2.1"
8
+ "lodash": "^4.17.21",
9
+ "moment": "^2.29.3",
10
+ "winston": "^3.7.2"
11
11
  },
12
12
  "devDependencies": {
13
- "ac-semantic-release": "^0.2.5",
14
- "eslint": "^7.19.0",
15
- "expect": "^26.6.2",
16
- "mocha": "^8.2.1",
17
- "mocha-jenkins-reporter": "^0.4.5"
13
+ "ac-semantic-release": "^0.3.0",
14
+ "eslint": "^8.13.0",
15
+ "expect": "^27.5.1",
16
+ "mocha": "^9.2.2",
17
+ "mocha-jenkins-reporter": "^0.4.7"
18
18
  },
19
19
  "scripts": {
20
20
  "test": "mocha --reporter spec",
21
21
  "test-jenkins": "JUNIT_REPORT_PATH=./report.xml mocha --colors --reporter mocha-jenkins-reporter --reporter-options junit_report_name='ACLogger'"
22
22
  },
23
23
  "engines": {
24
- "node": ">=10.0.0"
24
+ "node": ">=12.0.0"
25
25
  }
26
26
  }