initial commit
This commit is contained in:
16
examples/hello-world.rs
Normal file
16
examples/hello-world.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use arcade_logger::init_logging;
|
||||
use log::{error, info, warn};
|
||||
use tracing::{debug, trace};
|
||||
|
||||
fn main() {
|
||||
// Initialize the logging system
|
||||
init_logging("hello-world");
|
||||
|
||||
// Example logging with `log` and `tracing`
|
||||
info!("This is an info log message");
|
||||
warn!("This is a warning message");
|
||||
error!("An error occurred!");
|
||||
|
||||
debug!("Debug log: This is a detailed debug message.");
|
||||
trace!("Trace log: For detailed tracing.");
|
||||
}
|
||||
Reference in New Issue
Block a user