cat-loggr 1.0.2

A simple, lightweight utility for making beautiful logs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use owo_colors::Style;

#[derive(Debug, Clone)]
pub struct LogLevel {
	/// The name of the level
	pub name: String,
	/// Style to use when outputting the level
	pub style: Style,

	// The position of the level
	pub position: Option<usize>,
}

impl LogLevel {
	pub fn new(name: String, style: Style) -> Self {
		Self { name, style, position: None }
	}
}