mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-08-02 00:14:36 +00:00
🔊 Update 1.0.0
This commit is contained in:
+15
-4
@@ -1,29 +1,40 @@
|
||||
///|
|
||||
pub type RecordPatch = @utils.RecordPatch
|
||||
|
||||
///|
|
||||
pub fn identity_patch() -> RecordPatch {
|
||||
@utils.identity_patch()
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn set_target(target : String) -> RecordPatch {
|
||||
@utils.set_target(target)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn prefix_message(prefix : String) -> RecordPatch {
|
||||
@utils.prefix_message(prefix)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn append_fields(extra_fields : Array[Field]) -> RecordPatch {
|
||||
@utils.append_fields(extra_fields)
|
||||
}
|
||||
|
||||
pub fn redact_field(key : String, placeholder~ : String = "***") -> RecordPatch {
|
||||
@utils.redact_field(key, placeholder=placeholder)
|
||||
///|
|
||||
pub fn redact_field(key : String, placeholder? : String = "***") -> RecordPatch {
|
||||
@utils.redact_field(key, placeholder~)
|
||||
}
|
||||
|
||||
pub fn redact_fields(keys : Array[String], placeholder~ : String = "***") -> RecordPatch {
|
||||
@utils.redact_fields(keys, placeholder=placeholder)
|
||||
///|
|
||||
pub fn redact_fields(
|
||||
keys : Array[String],
|
||||
placeholder? : String = "***",
|
||||
) -> RecordPatch {
|
||||
@utils.redact_fields(keys, placeholder~)
|
||||
}
|
||||
|
||||
///|
|
||||
pub fn compose_patches(patches : Array[RecordPatch]) -> RecordPatch {
|
||||
@utils.compose_patches(patches)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user