[][src]Trait latexbuild::Logger

pub trait Logger {
    fn run_command<CS, I, S>(&mut self, command: CS, args: I)
    where
        CS: AsRef<OsStr>,
        I: IntoIterator<Item = S>,
        S: AsRef<OsStr>
;
fn command_output<S>(&mut self, s: S)
    where
        S: AsRef<str>
;
fn error<S>(&mut self, error: S)
    where
        S: AsRef<str>
;
fn message<S>(&mut self, message: S)
    where
        S: AsRef<str>
; }

Logger

Required methods

fn run_command<CS, I, S>(&mut self, command: CS, args: I) where
    CS: AsRef<OsStr>,
    I: IntoIterator<Item = S>,
    S: AsRef<OsStr>, 

Called when a command is run

Parameters

  • command: the comamnd string
  • args: an iterator to the arguments used

fn command_output<S>(&mut self, s: S) where
    S: AsRef<str>, 

Called when a command has produced outputs

Parameter

  • s: the command output

fn error<S>(&mut self, error: S) where
    S: AsRef<str>, 

Called when a error occurs

Parameter

  • error: the error string

fn message<S>(&mut self, message: S) where
    S: AsRef<str>, 

Called when a message is produced

Paramaeter

  • message: the message string
Loading content...

Implementors

impl Logger for StdErrLogger[src]

Loading content...