pub struct JsonlFileSink { /* private fields */ }Expand description
Built-in JSONL file sink with rotation and retention handling.
Implementations§
Source§impl JsonlFileSink
impl JsonlFileSink
Sourcepub fn new(
path: PathBuf,
rotation: RotationPolicy,
retention: RetentionPolicy,
) -> Self
pub fn new( path: PathBuf, rotation: RotationPolicy, retention: RetentionPolicy, ) -> Self
Creates a JSONL file sink at the given active log path.
§Panics
Panics only if the workspace-owned JSONL_FILE_SINK_NAME constant ever
becomes invalid for SinkName, which would indicate a programming bug.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for JsonlFileSink
impl RefUnwindSafe for JsonlFileSink
impl Send for JsonlFileSink
impl Sync for JsonlFileSink
impl Unpin for JsonlFileSink
impl UnsafeUnpin for JsonlFileSink
impl UnwindSafe for JsonlFileSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more