Skip to content

Commit

Permalink
Merge pull request #2 from MrEnder0/develop
Browse files Browse the repository at this point in the history
test publish
  • Loading branch information
MrEnder0 committed Dec 14, 2023
2 parents 52c64cd + a5d9e41 commit c9e3070
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "scorched"
description = "A simple logging library for scorching all those pesky bugs."
version = "0.4.4"
version = "0.4.5"
edition = "2021"
license = "Apache-2.0"

Expand Down
28 changes: 22 additions & 6 deletions src/utils/importance_tags.rs
@@ -1,17 +1,33 @@
use owo_colors::{ComboColorDisplay, colors::{CustomColor, css::*}, OwoColorize};
use owo_colors::{
colors::{css::*, CustomColor},
ComboColorDisplay, OwoColorize,
};

pub(crate) fn error_tag() -> ComboColorDisplay<'static, CustomColor<0, 0, 0>, CustomColor<{ u8::MAX }, 0, 0>, &'static str> {
pub(crate) fn error_tag(
) -> ComboColorDisplay<'static, CustomColor<0, 0, 0>, CustomColor<{ u8::MAX }, 0, 0>, &'static str>
{
"[ERROR]".fg::<Black>().bg::<Red>()
}

pub(crate) fn warning_tag() -> ComboColorDisplay<'static, CustomColor<0, 0, 0>, CustomColor<{ u8::MAX }, { u8::MAX }, 0>, &'static str> {
pub(crate) fn warning_tag() -> ComboColorDisplay<
'static,
CustomColor<0, 0, 0>,
CustomColor<{ u8::MAX }, { u8::MAX }, 0>,
&'static str,
> {
"[WARNING]".fg::<Black>().bg::<Yellow>()
}

pub(crate) fn info_tag() -> ComboColorDisplay<'static, CustomColor<0, 0, 0>, CustomColor<211, 211, 211>, &'static str> {
pub(crate) fn info_tag(
) -> ComboColorDisplay<'static, CustomColor<0, 0, 0>, CustomColor<211, 211, 211>, &'static str> {
"[INFO]".fg::<Black>().bg::<LightGray>()
}

pub(crate) fn debug_tag() -> ComboColorDisplay<'static, CustomColor<0, 0, 0>, CustomColor<{ u8::MAX }, 0, { u8::MAX }>, &'static str> {
pub(crate) fn debug_tag() -> ComboColorDisplay<
'static,
CustomColor<0, 0, 0>,
CustomColor<{ u8::MAX }, 0, { u8::MAX }>,
&'static str,
> {
"[DEBUG]".fg::<Black>().bg::<Magenta>()
}
}
2 changes: 1 addition & 1 deletion src/utils/mod.rs
@@ -1,2 +1,2 @@
pub mod importance_tags;
pub mod time_utils;
pub mod importance_tags;

0 comments on commit c9e3070

Please sign in to comment.