dreamos82 / Dreamos64

My experiments with osdev... again
160 stars 8 forks source link

Added logging feature #84

Closed DeanoBurrito closed 2 years ago

DeanoBurrito commented 2 years ago

Currently serial, debugcon and framebuffer are supported. Framebuffer will wrap around vertically, but not horizontally.

It supports outputting logs to multiple backends at the same time, and will default to serial if none are specified. It also features a trim level, where any logs of a level below that are ignored. The default is all logs are visible.

Let me know what you think!

Also, apparently log() is a builtin function, so we cant call it that. I've used logln() for now, but we can probably do better. Did you have any thoughts? I was thinking perhaps logline() might be more readable.