Skip to content

Commit eed1bc5

Browse files
refactor(hsh): ➖ remove loggers functions
1 parent 6f3eb91 commit eed1bc5

File tree

4 files changed

+0
-411
lines changed

4 files changed

+0
-411
lines changed

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@
108108
/// The `algorithms` module contains the password hashing algorithms.
109109
pub mod algorithms;
110110

111-
/// The `loggers` module contains the loggers for the library.
112-
pub mod loggers;
113-
114111
/// The `macros` module contains functions for generating macros.
115112
pub mod macros;
116113

src/loggers.rs

Lines changed: 0 additions & 243 deletions
This file was deleted.

src/macros.rs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -434,42 +434,6 @@ macro_rules! hash_length {
434434
};
435435
}
436436

437-
/// Custom logging macro for various log levels and formats.
438-
///
439-
/// # Parameters
440-
///
441-
/// * `$level`: The log level of the message.
442-
/// * `$component`: The component where the log is coming from.
443-
/// * `$description`: A description of the log message.
444-
/// * `$format`: The format of the log message.
445-
///
446-
#[macro_export]
447-
macro_rules! macro_log_info {
448-
($level:expr, $component:expr, $description:expr, $format:expr) => {{
449-
use dtt::DateTime;
450-
use vrd::random::Random;
451-
use $crate::loggers::{Log, LogFormat, LogLevel};
452-
453-
// Get the current date and time in ISO 8601 format.
454-
let date = DateTime::new();
455-
let iso = date.iso_8601;
456-
457-
// Create a new random number generator
458-
let mut rng = Random::default();
459-
let session_id = rng.rand().to_string();
460-
461-
let log = Log::new(
462-
&session_id,
463-
&iso,
464-
$level,
465-
$component,
466-
$description,
467-
$format,
468-
);
469-
let _ = log.log();
470-
}};
471-
}
472-
473437
/// Macros related to executing shell commands.
474438
///
475439
/// Executes a shell command, logs the start and completion of the operation, and handles any errors that occur.

0 commit comments

Comments
 (0)