import * as tsplus_module_1 from "@tsplus/stdlib/data/Maybe/definition";
/**
 * Returns a version of this logger that only logs messages when the log level
 * satisfies the specified predicate.
 *
 * @tsplus fluent ets/Logger filterLogLevel
 */

export function filterLogLevel_(self, f) {
  return {
    apply: (trace, fiberId, logLevel, message, cause, context, spans, annotations) => {
      return f(logLevel) ? tsplus_module_1.some(self.apply(trace, fiberId, logLevel, message, cause, context, spans, annotations)) : tsplus_module_1.none;
    }
  };
}
/**
 * Returns a version of this logger that only logs messages when the log level
 * satisfies the specified predicate.
 *
 * @tsplus static ets/Logger/Aspects filterLogLevel
 */

export const filterLogLevel = f => self => filterLogLevel_(self, f);
//# sourceMappingURL=filterLogLevel.mjs.map