effect 2.4.17 → 2.4.18

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.zipRight = exports.zipLeft = exports.zip = exports.withSpanAnnotations = exports.withMinimumLogLevel = exports.tracerLogger = exports.test = exports.sync = exports.succeed = exports.structuredLogger = exports.structured = exports.stringLogger = exports.simple = exports.replaceScoped = exports.replaceEffect = exports.replace = exports.remove = exports.none = exports.minimumLogLevel = exports.mapInputOptions = exports.mapInput = exports.map = exports.make = exports.logfmtLogger = exports.logFmt = exports.jsonLogger = exports.json = exports.isLogger = exports.filterLogLevel = exports.defaultLogger = exports.batched = exports.addScoped = exports.addEffect = exports.add = exports.LoggerTypeId = void 0;
6
+ exports.zipRight = exports.zipLeft = exports.zip = exports.withSpanAnnotations = exports.withMinimumLogLevel = exports.withConsoleLog = exports.withConsoleError = exports.tracerLogger = exports.test = exports.sync = exports.succeed = exports.structuredLogger = exports.structured = exports.stringLogger = exports.simple = exports.replaceScoped = exports.replaceEffect = exports.replace = exports.remove = exports.none = exports.minimumLogLevel = exports.mapInputOptions = exports.mapInput = exports.map = exports.make = exports.logfmtLogger = exports.logFmt = exports.jsonLogger = exports.json = exports.isLogger = exports.filterLogLevel = exports.defaultLogger = exports.batched = exports.addScoped = exports.addEffect = exports.add = exports.LoggerTypeId = void 0;
7
7
  var fiberRuntime = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./internal/fiberRuntime.js"));
8
8
  var circular = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./internal/layer/circular.js"));
9
9
  var internalCircular = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./internal/logger-circular.js"));
@@ -103,6 +103,16 @@ const map = exports.map = internal.map;
103
103
  * }).pipe(Effect.provide(LoggerLive), Effect.runFork);
104
104
  */
105
105
  const batched = exports.batched = fiberRuntime.batchedLogger;
106
+ /**
107
+ * @since 2.0.0
108
+ * @category console
109
+ */
110
+ const withConsoleLog = exports.withConsoleLog = fiberRuntime.loggerWithConsoleLog;
111
+ /**
112
+ * @since 2.0.0
113
+ * @category console
114
+ */
115
+ const withConsoleError = exports.withConsoleError = fiberRuntime.loggerWithConsoleError;
106
116
  /**
107
117
  * A logger that does nothing in response to logging events.
108
118
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Logger.js","names":["fiberRuntime","_interopRequireWildcard","require","circular","internalCircular","internal","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","LoggerTypeId","exports","make","makeLogger","add","addLogger","addEffect","addLoggerEffect","addScoped","addLoggerScoped","mapInput","mapInputOptions","filterLogLevel","map","batched","batchedLogger","none","remove","removeLogger","replace","replaceLogger","replaceEffect","replaceLoggerEffect","replaceScoped","replaceLoggerScoped","simple","succeed","sync","test","withMinimumLogLevel","withSpanAnnotations","loggerWithSpanAnnotations","zip","zipLeft","zipRight","defaultLogger","jsonLogger","logfmtLogger","stringLogger","structuredLogger","tracerLogger","json","logFmt","logFmtLogger","structured","minimumLogLevel","isLogger"],"sources":["../../src/Logger.ts"],"sourcesContent":[null],"mappings":";;;;;;AAUA,IAAAA,YAAA,gBAAAC,uBAAA,eAAAC,OAAA;AACA,IAAAC,QAAA,gBAAAF,uBAAA,eAAAC,OAAA;AACA,IAAAE,gBAAA,gBAAAH,uBAAA,eAAAC,OAAA;AACA,IAAAG,QAAA,gBAAAJ,uBAAA,eAAAC,OAAA;AAAgD,SAAAI,yBAAAC,CAAA;EAAA,yBAAAC,OAAA;EAAA,IAAAC,CAAA,OAAAD,OAAA;IAAAE,CAAA,OAAAF,OAAA;EAAA,QAAAF,wBAAA,YAAAA,CAAAC,CAAA;IAAA,OAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA;EAAA,GAAAF,CAAA;AAAA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CAAAwC,IAAA,gBAAuBtB,OAAO,CAAC7C,YAAY,CAAC6D,aAAa,EAAE7D,YAAY,CAAC8D,UAAU,CAAC;AAEpG;;;;AAIO,MAAMM,MAAM,GAAAzC,OAAA,CAAAyC,MAAA,gBAAuBvB,OAAO,CAAC7C,YAAY,CAAC6D,aAAa,EAAE7D,YAAY,CAACqE,YAAY,CAAC;AAExG;;;;AAIO,MAAMC,UAAU,GAAA3C,OAAA,CAAA2C,UAAA,gBAAuBzB,OAAO,CAAC7C,YAAY,CAAC6D,aAAa,EAAE7D,YAAY,CAACiE,gBAAgB,CAAC;AAEhH;;;;AAIO,MAAMM,eAAe,GAAA5C,OAAA,CAAA4C,eAAA,GAAqDpE,QAAQ,CAACoE,eAAe;AAEzG;;;;;;AAMO,MAAMC,QAAQ,GAAA7C,OAAA,CAAA6C,QAAA,GAAkDnE,QAAQ,CAACmE,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"Logger.js","names":["fiberRuntime","_interopRequireWildcard","require","circular","internalCircular","internal","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","LoggerTypeId","exports","make","makeLogger","add","addLogger","addEffect","addLoggerEffect","addScoped","addLoggerScoped","mapInput","mapInputOptions","filterLogLevel","map","batched","batchedLogger","withConsoleLog","loggerWithConsoleLog","withConsoleError","loggerWithConsoleError","none","remove","removeLogger","replace","replaceLogger","replaceEffect","replaceLoggerEffect","replaceScoped","replaceLoggerScoped","simple","succeed","sync","test","withMinimumLogLevel","withSpanAnnotations","loggerWithSpanAnnotations","zip","zipLeft","zipRight","defaultLogger","jsonLogger","logfmtLogger","stringLogger","structuredLogger","tracerLogger","json","logFmt","logFmtLogger","structured","minimumLogLevel","isLogger"],"sources":["../../src/Logger.ts"],"sourcesContent":[null],"mappings":";;;;;;AAUA,IAAAA,YAAA,gBAAAC,uBAAA,eAAAC,OAAA;AACA,IAAAC,QAAA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AA,GAA0BjE,YAAY,CAACiE,aAAa;AAE9E;;;;AAIO,MAAMC,UAAU,GAAAvC,OAAA,CAAAuC,UAAA,GAA4B7D,QAAQ,CAAC6D,UAAU;AAEtE;;;;AAIO,MAAMC,YAAY,GAAAxC,OAAA,CAAAwC,YAAA,GAA4B9D,QAAQ,CAAC8D,YAAY;AAE1E;;;;AAIO,MAAMC,YAAY,GAAAzC,OAAA,CAAAyC,YAAA,GAA4B/D,QAAQ,CAAC+D,YAAY;AAE1E;;;;AAIO,MAAMC,gBAAgB,GAAA1C,OAAA,CAAA0C,gBAAA,GAWzBhE,QAAQ,CAACgE,gBAAgB;AAE7B;;;;AAIO,MAAMC,YAAY,GAAA3C,OAAA,CAAA2C,YAAA,GAA0BtE,YAAY,CAACsE,YAAY;AAE5E;;;;AAIO,MAAMC,IAAI,GAAA5C,OAAA,CAAA4C,IAAA,gBAAuBtB,OAAO,CAACjD,YAAY,CAACiE,aAAa,EAAEjE,YAAY,CAACkE,UAAU,CAAC;AAEpG;;;;AAIO,MAAMM,MAAM,GAAA7C,OAAA,CAAA6C,MAAA,gBAAuBvB,OAAO,CAACjD,YAAY,CAACiE,aAAa,EAAEjE,YAAY,CAACyE,YAAY,CAAC;AAExG;;;;AAIO,MAAMC,UAAU,GAAA/C,OAAA,CAAA+C,UAAA,gBAAuBzB,OAAO,CAACjD,YAAY,CAACiE,aAAa,EAAEjE,YAAY,CAACqE,gBAAgB,CAAC;AAEhH;;;;AAIO,MAAMM,eAAe,GAAAhD,OAAA,CAAAgD,eAAA,GAAqDxE,QAAQ,CAACwE,eAAe;AAEzG;;;;;;AAMO,MAAMC,QAAQ,GAAAjD,OAAA,CAAAiD,QAAA,GAAkDvE,QAAQ,CAACuE,QAAQ","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.zipWithOptions = exports.zipRightOptions = exports.zipOptions = exports.zipLeftOptions = exports.withTracerScoped = exports.withSpanScoped = exports.withRuntimeFlagsScoped = exports.withRandomScoped = exports.withEarlyRelease = exports.withConfigProviderScoped = exports.withClockScoped = exports.validateWith = exports.validateFirst = exports.validateAllParDiscard = exports.validateAllPar = exports.validateAll = exports.validate = exports.using = exports.unsafeMakeChildFiber = exports.unsafeForkUnstarted = exports.unsafeFork = exports.tracerLogger = exports.tagMetricsScoped = exports.structuredLogger = exports.sequentialFinalizers = exports.scopedEffect = exports.scopeWith = exports.scopeUse = exports.scopeTag = exports.scopeMake = exports.scopeExtend = exports.scope = exports.replicateEffect = exports.replicate = exports.releaseMapReleaseAll = exports.reduceEffect = exports.raceWith = exports.raceFibersWith = exports.raceAll = exports.race = exports.partition = exports.parallelNFinalizers = exports.parallelFinalizers = exports.mergeAll = exports.makeSpanScoped = exports.loggerWithSpanAnnotations = exports.logFmtLogger = exports.labelMetricsScoped = exports.jsonLogger = exports.invokeWithInterrupt = exports.interruptWhenPossible = exports.getConsole = exports.forkWithErrorHandler = exports.forkDaemon = exports.fork = exports.forEachParUnbounded = exports.forEachParN = exports.forEachConcurrentDiscard = exports.forEach = exports.finalizersMask = exports.filter = exports.fiberSuccesses = exports.fiberStarted = exports.fiberScoped = exports.fiberRefUnsafeMakeSupervisor = exports.fiberRefMakeWith = exports.fiberRefMakeRuntimeFlags = exports.fiberRefMakeContext = exports.fiberRefMake = exports.fiberRefLocallyScopedWith = exports.fiberRefLocallyScoped = exports.fiberLifetimes = exports.fiberJoinAll = exports.fiberInterruptFork = exports.fiberFailures = exports.fiberAwaitAll = exports.fiberAll = exports.fiberActive = exports.exists = exports.ensuring = exports.disconnect = exports.defaultLogger = exports.daemonChildren = exports.currentSupervisor = exports.currentRuntimeFlags = exports.currentMinimumLogLevel = exports.currentLoggers = exports.batchedLogger = exports.allWith = exports.allSuccesses = exports.all = exports.addFinalizer = exports.acquireReleaseInterruptible = exports.acquireRelease = exports.FiberRuntime = void 0;
6
+ exports.zipWithOptions = exports.zipRightOptions = exports.zipOptions = exports.zipLeftOptions = exports.withTracerScoped = exports.withSpanScoped = exports.withRuntimeFlagsScoped = exports.withRandomScoped = exports.withEarlyRelease = exports.withConfigProviderScoped = exports.withClockScoped = exports.validateWith = exports.validateFirst = exports.validateAllParDiscard = exports.validateAllPar = exports.validateAll = exports.validate = exports.using = exports.unsafeMakeChildFiber = exports.unsafeForkUnstarted = exports.unsafeFork = exports.tracerLogger = exports.tagMetricsScoped = exports.structuredLogger = exports.sequentialFinalizers = exports.scopedEffect = exports.scopeWith = exports.scopeUse = exports.scopeTag = exports.scopeMake = exports.scopeExtend = exports.scope = exports.replicateEffect = exports.replicate = exports.releaseMapReleaseAll = exports.reduceEffect = exports.raceWith = exports.raceFibersWith = exports.raceAll = exports.race = exports.partition = exports.parallelNFinalizers = exports.parallelFinalizers = exports.mergeAll = exports.makeSpanScoped = exports.loggerWithSpanAnnotations = exports.loggerWithConsoleLog = exports.loggerWithConsoleError = exports.logFmtLogger = exports.labelMetricsScoped = exports.jsonLogger = exports.invokeWithInterrupt = exports.interruptWhenPossible = exports.forkWithErrorHandler = exports.forkDaemon = exports.fork = exports.forEachParUnbounded = exports.forEachParN = exports.forEachConcurrentDiscard = exports.forEach = exports.finalizersMask = exports.filter = exports.fiberSuccesses = exports.fiberStarted = exports.fiberScoped = exports.fiberRefUnsafeMakeSupervisor = exports.fiberRefMakeWith = exports.fiberRefMakeRuntimeFlags = exports.fiberRefMakeContext = exports.fiberRefMake = exports.fiberRefLocallyScopedWith = exports.fiberRefLocallyScoped = exports.fiberLifetimes = exports.fiberJoinAll = exports.fiberInterruptFork = exports.fiberFailures = exports.fiberAwaitAll = exports.fiberAll = exports.fiberActive = exports.exists = exports.ensuring = exports.disconnect = exports.defaultLogger = exports.daemonChildren = exports.currentSupervisor = exports.currentRuntimeFlags = exports.currentMinimumLogLevel = exports.currentLoggers = exports.batchedLogger = exports.allWith = exports.allSuccesses = exports.all = exports.addFinalizer = exports.acquireReleaseInterruptible = exports.acquireRelease = exports.FiberRuntime = void 0;
7
7
  var Boolean = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("../Boolean.js"));
8
8
  var Chunk = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("../Chunk.js"));
9
9
  var Context = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("../Context.js"));
@@ -1126,32 +1126,25 @@ class FiberRuntime {
1126
1126
  exports.FiberRuntime = FiberRuntime;
1127
1127
  const currentMinimumLogLevel = exports.currentMinimumLogLevel = /*#__PURE__*/(0, _GlobalValue.globalValue)("effect/FiberRef/currentMinimumLogLevel", () => core.fiberRefUnsafeMake(LogLevel.fromLiteral("Info")));
1128
1128
  /** @internal */
1129
- const getConsole = refs => {
1130
- const defaultServicesValue = FiberRefs.getOrDefault(refs, defaultServices.currentServices);
1131
- const cnsl = Context.get(defaultServicesValue, _console.consoleTag);
1132
- return cnsl.unsafe;
1133
- };
1129
+ const loggerWithConsoleLog = self => internalLogger.makeLogger(opts => {
1130
+ const services = FiberRefs.getOrDefault(opts.context, defaultServices.currentServices);
1131
+ Context.get(services, _console.consoleTag).unsafe.log(self.log(opts));
1132
+ });
1134
1133
  /** @internal */
1135
- exports.getConsole = getConsole;
1136
- const defaultLogger = exports.defaultLogger = /*#__PURE__*/(0, _GlobalValue.globalValue)( /*#__PURE__*/Symbol.for("effect/Logger/defaultLogger"), () => internalLogger.makeLogger(options => {
1137
- const formatted = internalLogger.stringLogger.log(options);
1138
- getConsole(options.context).log(formatted);
1139
- }));
1134
+ exports.loggerWithConsoleLog = loggerWithConsoleLog;
1135
+ const loggerWithConsoleError = self => internalLogger.makeLogger(opts => {
1136
+ const services = FiberRefs.getOrDefault(opts.context, defaultServices.currentServices);
1137
+ Context.get(services, _console.consoleTag).unsafe.error(self.log(opts));
1138
+ });
1140
1139
  /** @internal */
1141
- const jsonLogger = exports.jsonLogger = /*#__PURE__*/(0, _GlobalValue.globalValue)( /*#__PURE__*/Symbol.for("effect/Logger/jsonLogger"), () => internalLogger.makeLogger(options => {
1142
- const formatted = internalLogger.jsonLogger.log(options);
1143
- getConsole(options.context).log(formatted);
1144
- }));
1140
+ exports.loggerWithConsoleError = loggerWithConsoleError;
1141
+ const defaultLogger = exports.defaultLogger = /*#__PURE__*/(0, _GlobalValue.globalValue)( /*#__PURE__*/Symbol.for("effect/Logger/defaultLogger"), () => loggerWithConsoleLog(internalLogger.stringLogger));
1145
1142
  /** @internal */
1146
- const logFmtLogger = exports.logFmtLogger = /*#__PURE__*/(0, _GlobalValue.globalValue)( /*#__PURE__*/Symbol.for("effect/Logger/logFmtLogger"), () => internalLogger.makeLogger(options => {
1147
- const formatted = internalLogger.logfmtLogger.log(options);
1148
- getConsole(options.context).log(formatted);
1149
- }));
1143
+ const jsonLogger = exports.jsonLogger = /*#__PURE__*/(0, _GlobalValue.globalValue)( /*#__PURE__*/Symbol.for("effect/Logger/jsonLogger"), () => loggerWithConsoleLog(internalLogger.jsonLogger));
1150
1144
  /** @internal */
1151
- const structuredLogger = exports.structuredLogger = /*#__PURE__*/(0, _GlobalValue.globalValue)( /*#__PURE__*/Symbol.for("effect/Logger/structuredLogger"), () => internalLogger.makeLogger(options => {
1152
- const formatted = internalLogger.structuredLogger.log(options);
1153
- getConsole(options.context).log(formatted);
1154
- }));
1145
+ const logFmtLogger = exports.logFmtLogger = /*#__PURE__*/(0, _GlobalValue.globalValue)( /*#__PURE__*/Symbol.for("effect/Logger/logFmtLogger"), () => loggerWithConsoleLog(internalLogger.logfmtLogger));
1146
+ /** @internal */
1147
+ const structuredLogger = exports.structuredLogger = /*#__PURE__*/(0, _GlobalValue.globalValue)( /*#__PURE__*/Symbol.for("effect/Logger/structuredLogger"), () => loggerWithConsoleLog(internalLogger.structuredLogger));
1155
1148
  /** @internal */
1156
1149
  const tracerLogger = exports.tracerLogger = /*#__PURE__*/(0, _GlobalValue.globalValue)( /*#__PURE__*/Symbol.for("effect/Logger/tracerLogger"), () => internalLogger.makeLogger(({
1157
1150
  annotations,