Struct catapult::outputs::file::RotatingFile
[−]
[src]
pub struct RotatingFile { /* fields omitted */ }
File output
- sends output into a rotating file
catapult.conf
output { file { directory = "./logs/" } }
Parameters
- directory: Base directory into which logs are created. Can be a strftime pattern.
Methods
impl RotatingFile
[src]
fn new(name: String) -> RotatingFile
Trait Implementations
impl ConfigurableFilter for RotatingFile
[src]
fn human_name(&self) -> &str
fn mandatory_fields(&self) -> Vec<&str>
fn requires_fields(&self,
optional_config: &Option<HashMap<String, String>>,
required_fields: Vec<&str>)
optional_config: &Option<HashMap<String, String>>,
required_fields: Vec<&str>)
impl OutputProcessor for RotatingFile
[src]
fn start(&self,
rx: Receiver<String>,
config: &Option<HashMap<String, String>>)
-> Result<JoinHandle<()>, String>
rx: Receiver<String>,
config: &Option<HashMap<String, String>>)
-> Result<JoinHandle<()>, String>
fn handle_func(rx: Receiver<String>, oconfig: Option<HashMap<String, String>>)
fn invoke(&self,
rx: Receiver<String>,
config: &Option<HashMap<String, String>>,
handle_func: fn(_: Receiver<String>, _: Option<HashMap<String, String>>))
-> Result<JoinHandle<()>, String>
rx: Receiver<String>,
config: &Option<HashMap<String, String>>,
handle_func: fn(_: Receiver<String>, _: Option<HashMap<String, String>>))
-> Result<JoinHandle<()>, String>