oa::LogOptions

Configuration for the logging session owned by an Engine.

StRust public API

Declaration

pub struct LogOptions { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn directory(self, directory: impl Into<PathBuf>) -> Self
pub fn prefix(self, prefix: impl Into<String>) -> Self
pub const fn minimum_level(self, minimum_level: LogLevel) -> Self
pub const fn console_output(self, enabled: bool) -> Self
pub const fn file_output(self, enabled: bool) -> Self
pub const fn color_output(self, enabled: bool) -> Self
pub const fn level(&self) -> LogLevel
fn clone(&self) -> LogOptions
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

pub fn new() -> Self
fn default() -> Self

Public Method Documentation

pub fn directory( self, directory: impl Into<PathBuf> ) -> Self
No public source comment is attached to this declaration.
pub fn prefix( self, prefix: impl Into<String> ) -> Self
No public source comment is attached to this declaration.
pub const fn minimum_level( self, minimum_level: LogLevel ) -> Self
No public source comment is attached to this declaration.
pub const fn console_output( self, enabled: bool ) -> Self
No public source comment is attached to this declaration.
pub const fn file_output( self, enabled: bool ) -> Self
No public source comment is attached to this declaration.
pub const fn color_output( self, enabled: bool ) -> Self
No public source comment is attached to this declaration.
pub const fn level( &self ) -> LogLevel
No public source comment is attached to this declaration.
fn clone( &self ) -> LogOptions
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
pub fn new() -> Self
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.