@nebulaaa/journal 1.1.4 → 1.1.5

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/dist/journal.cjs CHANGED
@@ -17,11 +17,11 @@ const JOURNAL_LEVEL_WEIGHTS = {
17
17
  };
18
18
  /** 默认分级样式 */
19
19
  const JOURNAL_DEFAULT_LEVEL_STYLES = {
20
- debug: { label: '[Debug]', color: '#8C8C8C' },
21
- info: { label: '[Info]', color: '#0986FF' },
22
- warn: { label: '[Warn]', color: '#E6A23C' },
23
- error: { label: '[Error]', color: '#D93026' },
24
- disable: { label: '[Disable]', color: '' },
20
+ debug: { Label: '[Debug]', Color: '#8C8C8C' },
21
+ info: { Label: '[Info]', Color: '#0986FF' },
22
+ warn: { Label: '[Warn]', Color: '#E6A23C' },
23
+ error: { Label: '[Error]', Color: '#D93026' },
24
+ disable: { Label: '[Disable]', Color: '' },
25
25
  };
26
26
  /** 默认记录器名称 */
27
27
  const JOURNAL_DEFAULT_LOGGER_NAME = 'journal';
@@ -48,8 +48,8 @@ const CONSOLE_METHODS = {
48
48
  class JournalLogger {
49
49
  constructor(options) {
50
50
  var _a;
51
- this.Name = options.name;
52
- this.Level = (_a = options.level) !== null && _a !== void 0 ? _a : 'debug';
51
+ this.Name = options.Name;
52
+ this.Level = (_a = options.Level) !== null && _a !== void 0 ? _a : 'debug';
53
53
  }
54
54
  /** 输出 debug 级别记录 */
55
55
  Debug(message, ...args) {
@@ -86,11 +86,11 @@ class JournalLogger {
86
86
  const style = GetLevelStyle(level);
87
87
  const text = `[${this.Name}] ${String(message)}`;
88
88
  const method = CONSOLE_METHODS[level];
89
- if (style.color) {
90
- console[method](`%c${style.label}%c ${text}`, `color:${style.color};font-weight:bold;`, 'color:inherit;font-weight:inherit;', ...args);
89
+ if (style.Color) {
90
+ console[method](`%c${style.Label}%c ${text}`, `color:${style.Color};font-weight:bold;`, 'color:inherit;font-weight:inherit;', ...args);
91
91
  }
92
92
  else {
93
- console[method](`${style.label} ${text}`, ...args);
93
+ console[method](`${style.Label} ${text}`, ...args);
94
94
  }
95
95
  }
96
96
  }
@@ -105,7 +105,7 @@ const JournalContext = {
105
105
  _loggers: new Map(),
106
106
  };
107
107
  /**
108
- * 初始化;仅首次调用生效,重复调用将被警告并忽略
108
+ * 初始化
109
109
  * @param options 管理器配置
110
110
  */
111
111
  function JournalInit(options) {
@@ -113,12 +113,12 @@ function JournalInit(options) {
113
113
  if (JournalContext._instance) {
114
114
  return JournalContext._instance;
115
115
  }
116
- JournalContext._level = (_a = options === null || options === void 0 ? void 0 : options.level) !== null && _a !== void 0 ? _a : 'debug';
116
+ JournalContext._level = (_a = options === null || options === void 0 ? void 0 : options.Level) !== null && _a !== void 0 ? _a : 'debug';
117
117
  JournalContext._logger = new JournalLogger({
118
- name: JOURNAL_DEFAULT_LOGGER_NAME,
119
- level: JournalContext._level,
118
+ Name: JOURNAL_DEFAULT_LOGGER_NAME,
119
+ Level: JournalContext._level,
120
120
  });
121
- const overrides = options === null || options === void 0 ? void 0 : options.levels;
121
+ const overrides = options === null || options === void 0 ? void 0 : options.Levels;
122
122
  if (overrides) {
123
123
  for (const level of JOURNAL_LEVELS) {
124
124
  const style = overrides[level];
@@ -127,8 +127,8 @@ function JournalInit(options) {
127
127
  }
128
128
  }
129
129
  }
130
- for (const config of (_b = options === null || options === void 0 ? void 0 : options.loggers) !== null && _b !== void 0 ? _b : []) {
131
- Create(config.name, (_c = config.level) !== null && _c !== void 0 ? _c : 'debug');
130
+ for (const config of (_b = options === null || options === void 0 ? void 0 : options.Loggers) !== null && _b !== void 0 ? _b : []) {
131
+ Create(config.Name, (_c = config.Level) !== null && _c !== void 0 ? _c : 'debug');
132
132
  }
133
133
  JournalContext._instance = {
134
134
  Acquire,
@@ -200,7 +200,7 @@ function Create(name, level = 'debug') {
200
200
  existing.Level = level;
201
201
  return existing;
202
202
  }
203
- const logger = new JournalLogger({ name, level });
203
+ const logger = new JournalLogger({ Name: name, Level: level });
204
204
  JournalContext._loggers.set(name, logger);
205
205
  return logger;
206
206
  }
package/dist/journal.d.ts CHANGED
@@ -10,27 +10,27 @@ type JournalPrintLevel = Exclude<JournalLevel, 'disable'>;
10
10
  /** 分级样式:标记与颜色 */
11
11
  interface JournalLevelStyle {
12
12
  /** 分级标记,输出于日志头部,如 "[Debug]" */
13
- label: string;
13
+ Label: string;
14
14
  /** 分级颜色,支持任意 CSS 颜色值;留空表示不着色 */
15
- color: string;
15
+ Color: string;
16
16
  }
17
17
  /** 记录器配置 */
18
18
  interface JournalLoggerOptions {
19
19
  /** 记录器名称,需非空且在所属管理器内唯一 */
20
- name: string;
20
+ Name: string;
21
21
  /** 记录器分级,默认为 debug */
22
- level?: JournalLevel;
22
+ Level?: JournalLevel;
23
23
  }
24
24
  /** 日志管理器配置 */
25
25
  interface JournalManagerOptions {
26
26
  /** 管理器分级,默认为 debug */
27
- level?: JournalLevel;
27
+ Level?: JournalLevel;
28
28
  /** 分级样式配置,覆盖对应分级的默认标记与颜色 */
29
- levels?: {
29
+ Levels?: {
30
30
  [L in JournalLevel]?: Partial<JournalLevelStyle>;
31
31
  };
32
32
  /** 初始记录器配置列表 */
33
- loggers?: JournalLoggerOptions[];
33
+ Loggers?: JournalLoggerOptions[];
34
34
  }
35
35
  /** 日志记录器 */
36
36
  interface IJournalLogger {
@@ -134,7 +134,7 @@ declare class JournalLogger implements IJournalLogger {
134
134
  Log(level: JournalLevel, message: string, ...args: unknown[]): void;
135
135
  }
136
136
  /**
137
- * 初始化;仅首次调用生效,重复调用将被警告并忽略
137
+ * 初始化
138
138
  * @param options 管理器配置
139
139
  */
140
140
  declare function JournalInit(options?: JournalManagerOptions): IJournal;
@@ -1 +1 @@
1
- "use strict";const e=["debug","info","warn","error","disable"],l={debug:0,info:1,warn:2,error:3,disable:4},n={debug:{label:"[Debug]",color:"#8C8C8C"},info:{label:"[Info]",color:"#0986FF"},warn:{label:"[Warn]",color:"#E6A23C"},error:{label:"[Error]",color:"#D93026"},disable:{label:"[Disable]",color:""}},o="journal",r={debug:"log",info:"info",warn:"warn",error:"error"};class t{constructor(e){var l;this.Name=e.name,this.Level=null!==(l=e.level)&&void 0!==l?l:"debug"}Debug(e,...l){this.Log("debug",e,...l)}Info(e,...l){this.Log("info",e,...l)}Warn(e,...l){this.Log("warn",e,...l)}Error(e,...l){this.Log("error",e,...l)}Log(e,n,...o){if("disable"===e)return;if(l[this.Level]<l[i()])return;if(l[e]<l[this.Level])return;const t=v(e),s=`[${this.Name}] ${String(n)}`,u=r[e];t.color?console[u](`%c${t.label}%c ${s}`,`color:${t.color};font-weight:bold;`,"color:inherit;font-weight:inherit;",...o):console[u](`${t.label} ${s}`,...o)}}const s={_instance:null,_level:"disable",_logger:null,_styles:Object.assign({},n),_loggers:new Map};function i(){return s._level}function u(e){s._level=e,s._logger.Level=e}function g(e,...l){_("debug",e,...l)}function c(e,...l){_("info",e,...l)}function a(e,...l){_("warn",e,...l)}function f(e,...l){_("error",e,...l)}function _(e,l,...n){s._logger.Log(e,l,...n)}function v(e){return s._styles[e]}function b(e,l){s._styles[e]=Object.assign(Object.assign({},s._styles[e]),l)}function L(e,l="debug"){const n=s._loggers.get(e);if(n)return n.Level=l,n;const o=new t({name:e,level:l});return s._loggers.set(e,o),o}function d(e){var l;return null!==(l=s._loggers.get(e))&&void 0!==l?l:L(e,s._level)}function E(e){return s._loggers.delete(e)}function h(){s._loggers.clear()}function w(){return[...s._loggers.values()]}exports.JOURNAL_DEFAULT_LEVEL_STYLES=n,exports.JOURNAL_DEFAULT_LOGGER_NAME=o,exports.JOURNAL_LEVELS=e,exports.JOURNAL_LEVEL_WEIGHTS=l,exports.JournalInit=function(l){var n,r,_;if(s._instance)return s._instance;s._level=null!==(n=null==l?void 0:l.level)&&void 0!==n?n:"debug",s._logger=new t({name:o,level:s._level});const A=null==l?void 0:l.levels;if(A)for(const l of e){const e=A[l];e&&(s._styles[l]=Object.assign(Object.assign({},s._styles[l]),e))}for(const e of null!==(r=null==l?void 0:l.loggers)&&void 0!==r?r:[])L(e.name,null!==(_=e.level)&&void 0!==_?_:"debug");return s._instance={Acquire:d,Create:L,Remove:E,Clear:h,All:w,GetLevel:i,SetLevel:u,GetLevelStyle:v,SetLevelStyle:b,Debug:g,Info:c,Warn:a,Error:f},s._instance},exports.JournalLogger=t;
1
+ "use strict";const e=["debug","info","warn","error","disable"],o={debug:0,info:1,warn:2,error:3,disable:4},n={debug:{Label:"[Debug]",Color:"#8C8C8C"},info:{Label:"[Info]",Color:"#0986FF"},warn:{Label:"[Warn]",Color:"#E6A23C"},error:{Label:"[Error]",Color:"#D93026"},disable:{Label:"[Disable]",Color:""}},r="journal",l={debug:"log",info:"info",warn:"warn",error:"error"};class t{constructor(e){var o;this.Name=e.Name,this.Level=null!==(o=e.Level)&&void 0!==o?o:"debug"}Debug(e,...o){this.Log("debug",e,...o)}Info(e,...o){this.Log("info",e,...o)}Warn(e,...o){this.Log("warn",e,...o)}Error(e,...o){this.Log("error",e,...o)}Log(e,n,...r){if("disable"===e)return;if(o[this.Level]<o[i()])return;if(o[e]<o[this.Level])return;const t=_(e),s=`[${this.Name}] ${String(n)}`,u=l[e];t.Color?console[u](`%c${t.Label}%c ${s}`,`color:${t.Color};font-weight:bold;`,"color:inherit;font-weight:inherit;",...r):console[u](`${t.Label} ${s}`,...r)}}const s={_instance:null,_level:"disable",_logger:null,_styles:Object.assign({},n),_loggers:new Map};function i(){return s._level}function u(e){s._level=e,s._logger.Level=e}function g(e,...o){f("debug",e,...o)}function a(e,...o){f("info",e,...o)}function c(e,...o){f("warn",e,...o)}function L(e,...o){f("error",e,...o)}function f(e,o,...n){s._logger.Log(e,o,...n)}function _(e){return s._styles[e]}function v(e,o){s._styles[e]=Object.assign(Object.assign({},s._styles[e]),o)}function b(e,o="debug"){const n=s._loggers.get(e);if(n)return n.Level=o,n;const r=new t({Name:e,Level:o});return s._loggers.set(e,r),r}function d(e){var o;return null!==(o=s._loggers.get(e))&&void 0!==o?o:b(e,s._level)}function E(e){return s._loggers.delete(e)}function h(){s._loggers.clear()}function C(){return[...s._loggers.values()]}exports.JOURNAL_DEFAULT_LEVEL_STYLES=n,exports.JOURNAL_DEFAULT_LOGGER_NAME=r,exports.JOURNAL_LEVELS=e,exports.JOURNAL_LEVEL_WEIGHTS=o,exports.JournalInit=function(o){var n,l,f;if(s._instance)return s._instance;s._level=null!==(n=null==o?void 0:o.Level)&&void 0!==n?n:"debug",s._logger=new t({Name:r,Level:s._level});const w=null==o?void 0:o.Levels;if(w)for(const o of e){const e=w[o];e&&(s._styles[o]=Object.assign(Object.assign({},s._styles[o]),e))}for(const e of null!==(l=null==o?void 0:o.Loggers)&&void 0!==l?l:[])b(e.Name,null!==(f=e.Level)&&void 0!==f?f:"debug");return s._instance={Acquire:d,Create:b,Remove:E,Clear:h,All:C,GetLevel:i,SetLevel:u,GetLevelStyle:_,SetLevelStyle:v,Debug:g,Info:a,Warn:c,Error:L},s._instance},exports.JournalLogger=t;
@@ -1 +1 @@
1
- const e=["debug","info","warn","error","disable"],l={debug:0,info:1,warn:2,error:3,disable:4},n={debug:{label:"[Debug]",color:"#8C8C8C"},info:{label:"[Info]",color:"#0986FF"},warn:{label:"[Warn]",color:"#E6A23C"},error:{label:"[Error]",color:"#D93026"},disable:{label:"[Disable]",color:""}},o="journal",r={debug:"log",info:"info",warn:"warn",error:"error"};class t{constructor(e){var l;this.Name=e.name,this.Level=null!==(l=e.level)&&void 0!==l?l:"debug"}Debug(e,...l){this.Log("debug",e,...l)}Info(e,...l){this.Log("info",e,...l)}Warn(e,...l){this.Log("warn",e,...l)}Error(e,...l){this.Log("error",e,...l)}Log(e,n,...o){if("disable"===e)return;if(l[this.Level]<l[g()])return;if(l[e]<l[this.Level])return;const t=_(e),i=`[${this.Name}] ${String(n)}`,s=r[e];t.color?console[s](`%c${t.label}%c ${i}`,`color:${t.color};font-weight:bold;`,"color:inherit;font-weight:inherit;",...o):console[s](`${t.label} ${i}`,...o)}}const i={_instance:null,_level:"disable",_logger:null,_styles:Object.assign({},n),_loggers:new Map};function s(l){var n,r,s;if(i._instance)return i._instance;i._level=null!==(n=null==l?void 0:l.level)&&void 0!==n?n:"debug",i._logger=new t({name:o,level:i._level});const b=null==l?void 0:l.levels;if(b)for(const l of e){const e=b[l];e&&(i._styles[l]=Object.assign(Object.assign({},i._styles[l]),e))}for(const e of null!==(r=null==l?void 0:l.loggers)&&void 0!==r?r:[])L(e.name,null!==(s=e.level)&&void 0!==s?s:"debug");return i._instance={Acquire:h,Create:L,Remove:w,Clear:y,All:m,GetLevel:g,SetLevel:u,GetLevelStyle:_,SetLevelStyle:d,Debug:c,Info:a,Warn:f,Error:v},i._instance}function g(){return i._level}function u(e){i._level=e,i._logger.Level=e}function c(e,...l){b("debug",e,...l)}function a(e,...l){b("info",e,...l)}function f(e,...l){b("warn",e,...l)}function v(e,...l){b("error",e,...l)}function b(e,l,...n){i._logger.Log(e,l,...n)}function _(e){return i._styles[e]}function d(e,l){i._styles[e]=Object.assign(Object.assign({},i._styles[e]),l)}function L(e,l="debug"){const n=i._loggers.get(e);if(n)return n.Level=l,n;const o=new t({name:e,level:l});return i._loggers.set(e,o),o}function h(e){var l;return null!==(l=i._loggers.get(e))&&void 0!==l?l:L(e,i._level)}function w(e){return i._loggers.delete(e)}function y(){i._loggers.clear()}function m(){return[...i._loggers.values()]}export{n as JOURNAL_DEFAULT_LEVEL_STYLES,o as JOURNAL_DEFAULT_LOGGER_NAME,e as JOURNAL_LEVELS,l as JOURNAL_LEVEL_WEIGHTS,s as JournalInit,t as JournalLogger};
1
+ const e=["debug","info","warn","error","disable"],n={debug:0,info:1,warn:2,error:3,disable:4},o={debug:{Label:"[Debug]",Color:"#8C8C8C"},info:{Label:"[Info]",Color:"#0986FF"},warn:{Label:"[Warn]",Color:"#E6A23C"},error:{Label:"[Error]",Color:"#D93026"},disable:{Label:"[Disable]",Color:""}},r="journal",l={debug:"log",info:"info",warn:"warn",error:"error"};class t{constructor(e){var n;this.Name=e.Name,this.Level=null!==(n=e.Level)&&void 0!==n?n:"debug"}Debug(e,...n){this.Log("debug",e,...n)}Info(e,...n){this.Log("info",e,...n)}Warn(e,...n){this.Log("warn",e,...n)}Error(e,...n){this.Log("error",e,...n)}Log(e,o,...r){if("disable"===e)return;if(n[this.Level]<n[g()])return;if(n[e]<n[this.Level])return;const t=L(e),i=`[${this.Name}] ${String(o)}`,s=l[e];t.Color?console[s](`%c${t.Label}%c ${i}`,`color:${t.Color};font-weight:bold;`,"color:inherit;font-weight:inherit;",...r):console[s](`${t.Label} ${i}`,...r)}}const i={_instance:null,_level:"disable",_logger:null,_styles:Object.assign({},o),_loggers:new Map};function s(n){var o,l,s;if(i._instance)return i._instance;i._level=null!==(o=null==n?void 0:n.Level)&&void 0!==o?o:"debug",i._logger=new t({Name:r,Level:i._level});const b=null==n?void 0:n.Levels;if(b)for(const n of e){const e=b[n];e&&(i._styles[n]=Object.assign(Object.assign({},i._styles[n]),e))}for(const e of null!==(l=null==n?void 0:n.Loggers)&&void 0!==l?l:[])d(e.Name,null!==(s=e.Level)&&void 0!==s?s:"debug");return i._instance={Acquire:h,Create:d,Remove:C,Clear:w,All:y,GetLevel:g,SetLevel:u,GetLevelStyle:L,SetLevelStyle:_,Debug:a,Info:c,Warn:f,Error:v},i._instance}function g(){return i._level}function u(e){i._level=e,i._logger.Level=e}function a(e,...n){b("debug",e,...n)}function c(e,...n){b("info",e,...n)}function f(e,...n){b("warn",e,...n)}function v(e,...n){b("error",e,...n)}function b(e,n,...o){i._logger.Log(e,n,...o)}function L(e){return i._styles[e]}function _(e,n){i._styles[e]=Object.assign(Object.assign({},i._styles[e]),n)}function d(e,n="debug"){const o=i._loggers.get(e);if(o)return o.Level=n,o;const r=new t({Name:e,Level:n});return i._loggers.set(e,r),r}function h(e){var n;return null!==(n=i._loggers.get(e))&&void 0!==n?n:d(e,i._level)}function C(e){return i._loggers.delete(e)}function w(){i._loggers.clear()}function y(){return[...i._loggers.values()]}export{o as JOURNAL_DEFAULT_LEVEL_STYLES,r as JOURNAL_DEFAULT_LOGGER_NAME,e as JOURNAL_LEVELS,n as JOURNAL_LEVEL_WEIGHTS,s as JournalInit,t as JournalLogger};
package/dist/journal.mjs CHANGED
@@ -15,11 +15,11 @@ const JOURNAL_LEVEL_WEIGHTS = {
15
15
  };
16
16
  /** 默认分级样式 */
17
17
  const JOURNAL_DEFAULT_LEVEL_STYLES = {
18
- debug: { label: '[Debug]', color: '#8C8C8C' },
19
- info: { label: '[Info]', color: '#0986FF' },
20
- warn: { label: '[Warn]', color: '#E6A23C' },
21
- error: { label: '[Error]', color: '#D93026' },
22
- disable: { label: '[Disable]', color: '' },
18
+ debug: { Label: '[Debug]', Color: '#8C8C8C' },
19
+ info: { Label: '[Info]', Color: '#0986FF' },
20
+ warn: { Label: '[Warn]', Color: '#E6A23C' },
21
+ error: { Label: '[Error]', Color: '#D93026' },
22
+ disable: { Label: '[Disable]', Color: '' },
23
23
  };
24
24
  /** 默认记录器名称 */
25
25
  const JOURNAL_DEFAULT_LOGGER_NAME = 'journal';
@@ -46,8 +46,8 @@ const CONSOLE_METHODS = {
46
46
  class JournalLogger {
47
47
  constructor(options) {
48
48
  var _a;
49
- this.Name = options.name;
50
- this.Level = (_a = options.level) !== null && _a !== void 0 ? _a : 'debug';
49
+ this.Name = options.Name;
50
+ this.Level = (_a = options.Level) !== null && _a !== void 0 ? _a : 'debug';
51
51
  }
52
52
  /** 输出 debug 级别记录 */
53
53
  Debug(message, ...args) {
@@ -84,11 +84,11 @@ class JournalLogger {
84
84
  const style = GetLevelStyle(level);
85
85
  const text = `[${this.Name}] ${String(message)}`;
86
86
  const method = CONSOLE_METHODS[level];
87
- if (style.color) {
88
- console[method](`%c${style.label}%c ${text}`, `color:${style.color};font-weight:bold;`, 'color:inherit;font-weight:inherit;', ...args);
87
+ if (style.Color) {
88
+ console[method](`%c${style.Label}%c ${text}`, `color:${style.Color};font-weight:bold;`, 'color:inherit;font-weight:inherit;', ...args);
89
89
  }
90
90
  else {
91
- console[method](`${style.label} ${text}`, ...args);
91
+ console[method](`${style.Label} ${text}`, ...args);
92
92
  }
93
93
  }
94
94
  }
@@ -103,7 +103,7 @@ const JournalContext = {
103
103
  _loggers: new Map(),
104
104
  };
105
105
  /**
106
- * 初始化;仅首次调用生效,重复调用将被警告并忽略
106
+ * 初始化
107
107
  * @param options 管理器配置
108
108
  */
109
109
  function JournalInit(options) {
@@ -111,12 +111,12 @@ function JournalInit(options) {
111
111
  if (JournalContext._instance) {
112
112
  return JournalContext._instance;
113
113
  }
114
- JournalContext._level = (_a = options === null || options === void 0 ? void 0 : options.level) !== null && _a !== void 0 ? _a : 'debug';
114
+ JournalContext._level = (_a = options === null || options === void 0 ? void 0 : options.Level) !== null && _a !== void 0 ? _a : 'debug';
115
115
  JournalContext._logger = new JournalLogger({
116
- name: JOURNAL_DEFAULT_LOGGER_NAME,
117
- level: JournalContext._level,
116
+ Name: JOURNAL_DEFAULT_LOGGER_NAME,
117
+ Level: JournalContext._level,
118
118
  });
119
- const overrides = options === null || options === void 0 ? void 0 : options.levels;
119
+ const overrides = options === null || options === void 0 ? void 0 : options.Levels;
120
120
  if (overrides) {
121
121
  for (const level of JOURNAL_LEVELS) {
122
122
  const style = overrides[level];
@@ -125,8 +125,8 @@ function JournalInit(options) {
125
125
  }
126
126
  }
127
127
  }
128
- for (const config of (_b = options === null || options === void 0 ? void 0 : options.loggers) !== null && _b !== void 0 ? _b : []) {
129
- Create(config.name, (_c = config.level) !== null && _c !== void 0 ? _c : 'debug');
128
+ for (const config of (_b = options === null || options === void 0 ? void 0 : options.Loggers) !== null && _b !== void 0 ? _b : []) {
129
+ Create(config.Name, (_c = config.Level) !== null && _c !== void 0 ? _c : 'debug');
130
130
  }
131
131
  JournalContext._instance = {
132
132
  Acquire,
@@ -198,7 +198,7 @@ function Create(name, level = 'debug') {
198
198
  existing.Level = level;
199
199
  return existing;
200
200
  }
201
- const logger = new JournalLogger({ name, level });
201
+ const logger = new JournalLogger({ Name: name, Level: level });
202
202
  JournalContext._loggers.set(name, logger);
203
203
  return logger;
204
204
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebulaaa/journal",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "日志记录扩展包",
5
5
  "author": "doooreyn",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebulaaa/journal",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "日志记录扩展包",
5
5
  "main": "./dist/journal.cjs",
6
6
  "module": "./dist/journal.mjs",