$l-&gt;message("an error has occurred.",logger::err);//handled by all three loggers