From 1293ea92bdbf3eb2086ec117e355714b6ee54ae9 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Mon, 22 Jun 2026 19:56:40 +0300 Subject: Make Logger's output destination customizable This aids in testing and might allow logging to a file at a later point. --- src/run.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/run.rs') diff --git a/src/run.rs b/src/run.rs index c28d7f3..2a51f1b 100644 --- a/src/run.rs +++ b/src/run.rs @@ -31,16 +31,15 @@ pub fn run( let paths = paths_from_null_separated_bytes(&input_buf); let md_generator = MarkdownGenerator::new(&paths) - .with_logger(logger) .with_origin(&cli.origin) .with_project_title(cli.name.as_deref()) .with_render_options(cli.render_options()) .with_root(&cli.root); if cli.fenced { - md_generator.generate_fenced(output) + md_generator.generate_fenced(output, &logger) } else { - md_generator.generate(output) + md_generator.generate(output, &logger) } } -- cgit v1.3.1