Crates.io | kernel-log |
lib.rs | kernel-log |
version | 0.1.3 |
source | src |
created_at | 2022-01-19 20:40:47.993641 |
updated_at | 2024-03-08 23:04:59.53393 |
description | Windows kernel printing library. |
homepage | |
repository | https://github.com/not-matthias/kernel-log-rs |
max_upload_size | |
id | 517053 |
size | 7,107 |
A minimalistic logger for Windows Kernel Drivers.
#![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.")
}