summaryrefslogtreecommitdiffstats
path: root/lib/core/libimagrt/src/logger.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core/libimagrt/src/logger.rs')
-rw-r--r--lib/core/libimagrt/src/logger.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/core/libimagrt/src/logger.rs b/lib/core/libimagrt/src/logger.rs
index 329f9f09..94d72a16 100644
--- a/lib/core/libimagrt/src/logger.rs
+++ b/lib/core/libimagrt/src/logger.rs
@@ -48,19 +48,19 @@ impl Default for LogDestination {
/// Logger implementation for `log` crate.
#[derive(Debug)]
-pub struct ImagLogger {
+pub struct ImagLogger<'rc> {
global_loglevel : Level,
#[allow(unused)]
global_destinations : Vec<LogDestination>,
- handlebars: Handlebars,
+ handlebars: Handlebars<'rc>,
}
-impl ImagLogger {
+impl<'rc> ImagLogger<'rc> {
/// Create a new ImagLogger object with a certain level
- pub fn new(matches: &ArgMatches, config: Option<&Value>) -> Result<ImagLogger> {
+ pub fn new(matches: &ArgMatches, config: Option<&Value>) -> Result<ImagLogger<'rc>> {
let mut handlebars = Handlebars::new();
handlebars.register_escape_fn(::handlebars::no_escape);
@@ -90,7 +90,7 @@ impl ImagLogger {
}
-impl Log for ImagLogger {
+impl<'rc> Log for ImagLogger<'rc> {
fn enabled(&self, metadata: &Metadata) -> bool {
metadata.level() <= self.global_loglevel