hermit-os / hermit-os/kernel

Add logging syscall

Open
#2,112 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.5k
Forks
132
Avg merge
1d 14h
Merged PRs (30d)
39

Description

It would be nice to be able to emit logs from the application in the same style the kernel uses.

I have implemented a logging syscall for this purpose:
```
pub unsafe extern "C" fn sys_log(
level: usize,
target_ptr: *const u8,
target_len: usize,
message_ptr: *const u8,
message_len: usize,
)
```
Log filtering is handled by the application to enable compile time log filtering.

If desired, I'll open a PR to upstream this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.