Skip to content

max-passion/log-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log Test

A simple Rust project demonstrating the use of the tracing crate for structured logging and debugging.

Features

  • Structured logging with key-value pairs
  • Span-based operation tracking
  • Configurable log levels via environment variables
  • Best practices guide for AI agents using tracing

Installation

Ensure you have Rust installed. Clone the repository and build:

git clone <repository-url>
cd log-test
cargo build

Usage

Run the application with debug logging:

RUST_LOG=debug cargo run

This will output structured debug messages demonstrating tracing features.

Dependencies

  • tracing: For logging and tracing
  • tracing-subscriber: For log formatting and filtering

Best Practices

See best_practices.md for a system prompt on using tracing effectively in Rust development, tailored for AI agents.

License

[Add license if applicable]

About

A simple Rust project demonstrating the use of the tracing crate for structured logging and debugging.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages