summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSophie Forrest <git@sophieforrest.com>2024-10-04 23:46:51 +1300
committerSophie Forrest <git@sophieforrest.com>2024-10-04 23:46:51 +1300
commitf6afe603e76e92413b875478ac1eb9fc9a2012d8 (patch)
tree052fbe9dacc8a250b13d20462865c9679e73f201 /src
parent21d0fe6f99c81308fdb392ff8033f09dff90c46c (diff)
feat: add logging
Diffstat (limited to '')
-rw-r--r--src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 4d64f3c..430d522 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -11,10 +11,16 @@ mod cpu;
 mod instruction;
 mod memory;
 
+use tracing::level_filters::LevelFilter;
+
 use cpu::Cpu;
 use memory::Memory;
 
 fn main() {
+	tracing_subscriber::fmt()
+		.with_max_level(LevelFilter::INFO)
+		.init();
+
 	let mut cpu = Cpu::new();
 	let mut memory = Memory::new();