@niceties/logger
Advanced tools
Comparing version 1.0.0-alpha.2 to 1.0.0-alpha.3
@@ -1,4 +0,4 @@ | ||
import { createLogger } from './core'; | ||
import { createLogger, filterMessages, combineAppenders } from './core'; | ||
import { appender } from './details/global-appender'; | ||
export * from './types'; | ||
export { createLogger, appender }; | ||
export { createLogger, appender, filterMessages, combineAppenders }; |
@@ -11,6 +11,5 @@ 'use strict'; | ||
const { createConsoleAppender } = require('./console-appender'); | ||
const { filterMessages } = require('./appender-utils'); | ||
const { createFormatter, terminalSupportsUnicode } = require('./format-utils'); | ||
const formatter = createFormatter(colors, terminalSupportsUnicode() ? unicodePrefixes : asciiPrefixes); | ||
globalAppender.appender(filterMessages((message) => message.loglevel > 0 /* verbose */, createConsoleAppender(formatter))); | ||
globalAppender.appender(globalAppender.filterMessages((message) => message.loglevel > 0 /* verbose */, createConsoleAppender(formatter))); | ||
} | ||
@@ -20,1 +19,3 @@ | ||
exports.appender = globalAppender.appender; | ||
exports.combineAppenders = globalAppender.combineAppenders; | ||
exports.filterMessages = globalAppender.filterMessages; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("./core"),require("./default-formatting"),require("./console-appender"),require("./format-utils")):"function"==typeof define&&define.amd?define(["exports","./core","./default-formatting","./console-appender","./format-utils"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).nicetiesLogger={},e.nicetiesLoggerCore,e.nicetiesLoggerDefaultFormatting,e.nicetiesLoggerConsoleAppender,e.nicetiesLoggerFormatUtils)}(this,(function(e,t,n,o,r){"use strict";let i;function u(e){return void 0!==e&&(i=e),i}if(!u()){const e=r.createFormatter(n.colors,r.terminalSupportsUnicode()?n.unicodePrefixes:n.asciiPrefixes);u(function(e,t){return function(n){e(n)&&t(n)}}((e=>e.loglevel>0),o.createConsoleAppender(e)))}Object.defineProperty(e,"createLogger",{enumerable:!0,get:function(){return t.createLogger}}),e.appender=u,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("./core"),require("./default-formatting"),require("./console-appender"),require("./format-utils")):"function"==typeof define&&define.amd?define(["exports","./core","./default-formatting","./console-appender","./format-utils"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).nicetiesLogger={},e.nicetiesLoggerCore,e.nicetiesLoggerDefaultFormatting,e.nicetiesLoggerConsoleAppender,e.nicetiesLoggerFormatUtils)}(this,(function(e,t,n,r,o){"use strict";let i;function u(e){return void 0!==e&&(i=e),i}if(!u()){const e=o.createFormatter(n.colors,o.terminalSupportsUnicode()?n.unicodePrefixes:n.asciiPrefixes);u(t.filterMessages((e=>e.loglevel>0),r.createConsoleAppender(e)))}Object.defineProperty(e,"combineAppenders",{enumerable:!0,get:function(){return t.combineAppenders}}),Object.defineProperty(e,"createLogger",{enumerable:!0,get:function(){return t.createLogger}}),Object.defineProperty(e,"filterMessages",{enumerable:!0,get:function(){return t.filterMessages}}),e.appender=u,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"version": "1.0.0-alpha.2", | ||
"version": "1.0.0-alpha.3", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "name": "@niceties/logger", |
@@ -233,4 +233,2 @@ # Logger | ||
Subpackage `'@niceties/logger/appender-utils'` exports `filterMessages()` and `combineAppenders()` functions. | ||
# Prior art | ||
@@ -237,0 +235,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47019
461
239