"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.contramap = contramap;
exports.contramap_ = void 0;
const contramap_ = contramap_1;
/**
 * @tsplus fluent ets/Logger contramap
 */

exports.contramap_ = contramap_;

function contramap_1(self, f) {
  return {
    apply: (trace, fiberId, logLevel, message, cause, context, spans, annotations) => self.apply(trace, fiberId, logLevel, () => f(message()), cause, context, spans, annotations)
  };
}
/**
 * @tsplus type ets/Logger/Aspects contramap
 */


function contramap(f) {
  return self => contramap_1(self, f);
}
//# sourceMappingURL=contramap.js.map