NominalLogStreamBuilder#

pub struct NominalLogStreamBuilder#

Configure a Core or file target and the log stream resource limits.

Implementations#

impl NominalLogStreamBuilder
pub fn new() -> Self#

Create a builder with default log stream options.

pub fn with_options(self, opts: NominalLogStreamOpts) -> Self#

Set batching and buffering limits.

pub fn stream_to_core(self, auth: impl AuthProvider + 'static, dataset_rid: ResourceIdentifier, handle: Handle) -> Self#

Upload to an existing dataset using the supplied authentication provider and runtime.

pub fn with_file_fallback(self, directory: impl Into<PathBuf>) -> Self#

Directory for per-channel journal files and their import manifests.

pub fn stream_to_file(self, directory: impl Into<PathBuf>) -> Self#

Write only journal files. A Core target or fallback directory cannot also be set.

pub fn enable_logging(self) -> Self#

Enable tracing with the default filter or RUST_LOG environment setting.

pub fn enable_logging_with_directive(self, directive: &str) -> Self#

Enable tracing with an explicit filter directive.

pub fn build(self) -> Result<NominalLogStream, LogStreamError>#

Validate the configuration and start upload workers.

Trait implementations#

Derived: Default

Auto traits: Send, Sync, Unpin, !UnwindSafe, !RefUnwindSafe