You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: logger.rs
    path of file: ./repos/rust-webserver-example-with-iron-diesel-r2d2-serde/src/utils
    
    the code of the file until where you have to start completion: use std::io::stdout;
use std::env;
use std::sync::Mutex;

use slog::*;
use slog_term;
use slog_json::Json;

pub fn logger_factory() -> Logger {

	let log_output_type = env::var("LOG_OUTPUT").expect("LOG_OUTPUT must be set");

	match log_output_t
    
pub fn logger_factory() -> Logger {

	let log_output_type = env::var("LOG_OUTPUT").expect("LOG_OUTPUT must be set");

	match log_output_type.as_ref() {
		"json" => {
			let json = Mutex::new(Json::default(stdout())).map(Fuse);

			Logger::root(
				json,
				o!("app" => "templic-backend")
			)
		},
		_ => {
			let plain = slog_term::PlainSyncDecorator::new(stdout());
			let drain = slog_term::FullFormat::new(plain).build().fuse();

			Logger::root(
				drain,
				o!("app" => "templic-backend")
			)
		}
	}
}