mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-07-30 15:04:48 +00:00
♻️ sync owner migration and facade thinning
This commit is contained in:
+10
-10
@@ -1,47 +1,47 @@
|
||||
///|
|
||||
pub type RecordPredicate = @utils.RecordPredicate
|
||||
pub type RecordPredicate = @record_ops.RecordPredicate
|
||||
|
||||
///|
|
||||
pub fn level_at_least(min_level : Level) -> RecordPredicate {
|
||||
@utils.level_at_least(min_level)
|
||||
@record_ops.level_at_least(min_level)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn target_is(target : String) -> RecordPredicate {
|
||||
@utils.target_is(target)
|
||||
@record_ops.target_is(target)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn target_has_prefix(prefix : String) -> RecordPredicate {
|
||||
@utils.target_has_prefix(prefix)
|
||||
@record_ops.target_has_prefix(prefix)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn message_contains(fragment : String) -> RecordPredicate {
|
||||
@utils.message_contains(fragment)
|
||||
@record_ops.message_contains(fragment)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn has_field(key : String) -> RecordPredicate {
|
||||
@utils.has_field(key)
|
||||
@record_ops.has_field(key)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn field_equals(key : String, value : String) -> RecordPredicate {
|
||||
@utils.field_equals(key, value)
|
||||
@record_ops.field_equals(key, value)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn not_(predicate : RecordPredicate) -> RecordPredicate {
|
||||
@utils.not_(predicate)
|
||||
@record_ops.not_(predicate)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn all_of(predicates : Array[RecordPredicate]) -> RecordPredicate {
|
||||
@utils.all_of(predicates)
|
||||
@record_ops.all_of(predicates)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn any_of(predicates : Array[RecordPredicate]) -> RecordPredicate {
|
||||
@utils.any_of(predicates)
|
||||
@record_ops.any_of(predicates)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user