Struct timely::logging::LoggerConfig
[−]
[src]
pub struct LoggerConfig { pub timely_logging: Arc<Fn(TimelySetup) -> Rc<BufferingLogger<TimelySetup, TimelyEvent>> + Send + Sync>, pub communication_logging: Arc<Fn(CommsSetup) -> Rc<BufferingLogger<CommsSetup, CommsEvent>> + Send + Sync>, }
Shared wrapper for log writer constructors.
Fields
timely_logging: Arc<Fn(TimelySetup) -> Rc<BufferingLogger<TimelySetup, TimelyEvent>> + Send + Sync>
Log writer constructors.
communication_logging: Arc<Fn(CommsSetup) -> Rc<BufferingLogger<CommsSetup, CommsEvent>> + Send + Sync>
Log writer constructors for communication.
Methods
impl LoggerConfig
[src]
pub fn new<P1: 'static, P2: 'static, F1: 'static, F2: 'static>(
timely_subscription: F1,
communication_subscription: F2
) -> Self where
P1: EventPusher<Product<RootTimestamp, u64>, (u64, TimelySetup, TimelyEvent)> + Send,
P2: EventPusher<Product<RootTimestamp, u64>, (u64, CommsSetup, CommsEvent)> + Send,
F1: Fn(TimelySetup) -> P1 + Send + Sync,
F2: Fn(CommsSetup) -> P2 + Send + Sync,
[src]
timely_subscription: F1,
communication_subscription: F2
) -> Self where
P1: EventPusher<Product<RootTimestamp, u64>, (u64, TimelySetup, TimelyEvent)> + Send,
P2: EventPusher<Product<RootTimestamp, u64>, (u64, CommsSetup, CommsEvent)> + Send,
F1: Fn(TimelySetup) -> P1 + Send + Sync,
F2: Fn(CommsSetup) -> P2 + Send + Sync,
Makes a new LoggerConfig
wrapper from a LogManager
.