kernel-log

Crates.iokernel-log
lib.rskernel-log
version0.1.3
sourcesrc
created_at2022-01-19 20:40:47.993641
updated_at2024-03-08 23:04:59.53393
descriptionWindows kernel printing library.
homepage
repositoryhttps://github.com/not-matthias/kernel-log-rs
max_upload_size
id517053
size7,107
Matthias (not-matthias)

documentation

README

Rust crates.io docs.rs

kernel-log-rs

A minimalistic logger for Windows Kernel Drivers.

Usage

#![no_std]

use kernel_log::KernelLogger;

#[no_mangle]
pub extern "system" fn DriverEntry(_: PDRIVER_OBJECT, _: u64) -> NTSTATUS {
    KernelLogger::init(LevelFilter::Info).expect("Failed to initialize logger");

    log::warn!("This is an example message.")
}
Commit count: 38

cargo fmt