@loke/logger 3.5.0 → 3.5.1
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/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,8 @@ Object.defineProperty(exports, "LokeLogger", { enumerable: true, get: function (
|
|
|
13
13
|
var null_1 = require("./lib/null");
|
|
14
14
|
Object.defineProperty(exports, "nullLogger", { enumerable: true, get: function () { return null_1.nullLogger; } });
|
|
15
15
|
const systemd = Boolean(process.env.JOURNAL_STREAM);
|
|
16
|
-
|
|
16
|
+
const kubernetes = Boolean(process.env.KUBERNETES_SERVICE_HOST);
|
|
17
|
+
function create({ syslog = false, metricsRegistry, showDebug, systemdPrefix = systemd, escapeNewlines = systemd || kubernetes, } = {}) {
|
|
17
18
|
const streams = [
|
|
18
19
|
new streams_1.ConsoleStream(undefined, undefined, systemdPrefix, escapeNewlines),
|
|
19
20
|
];
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAoBA,wBAsBC;AA1CD,2CAA4D;AAC5D,yCAA0C;AAC1C,2CAAkD;AAGlD,yCAA4D;AAAnD,uGAAA,YAAY,OAAA;AAAE,wGAAA,aAAa,OAAA;AACpC,uCAAkD;AAAzC,oGAAA,UAAU,OAAA;AACnB,mCAAwC;AAA/B,kGAAA,UAAU,OAAA;AAUnB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACpD,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAEhE,SAAgB,MAAM,CAAC,EACrB,MAAM,GAAG,KAAK,EACd,eAAe,EACf,SAAS,EACT,aAAa,GAAG,OAAO,EACvB,cAAc,GAAG,OAAO,IAAI,UAAU,MACf,EAAE;IACzB,MAAM,OAAO,GAA4B;QACvC,IAAI,uBAAa,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,CAAC;KACvE,CAAC;IAEF,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,CAAC,IAAI,CAAC,IAAI,sBAAY,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,IAAI,MAAM,GAAG,IAAI,mBAAU,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;IAEpD,IAAI,eAAe,EAAE,CAAC;QACpB,MAAM,GAAG,IAAA,2BAAiB,EAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|