1 unstable release
Uses new Rust 2024
new 0.1.1 | Apr 3, 2025 |
---|
#36 in #debugging-logging
Used in aloe-au
90KB
650 lines
aloe-au-debug
aloe-au-debug
is a Rust crate designed to facilitate logging within applications by providing utilities to dispatch error and warning messages to syslog, with optional stderr output if the application is in debug mode.
Features
- Log error and warning messages to syslog, a standard logging facility on Unix and Unix-like systems.
- Optionally output to stderr when debugging is enabled, aiding developers in tracing issues during the development phase.
Interface
Functions
-
log_error(fmt: *const u8, args: &[&str])
: Sends formatted error messages to syslog and optionally to stderr if the application is in debug mode. -
log_warning(fmt: *const u8, args: &[&str])
: Sends formatted warning messages to syslog and optionally to stderr if debugging.
Usage
Integrating aloe-au-debug
into your project requires setting up the crate dependency in your Cargo.toml
:
[dependencies]
aloe-au-debug = "0.1.0"
Example
use aloe_au_debug::{log_error, log_warning};
log_error("Error occurred: %s", &["Unexpected behavior"]);
log_warning("Warning: %s", &["Resource usage high"]);
This demonstrates how to log error and warning messages, with potential console output in a debug configuration.
Repository
For more information, visit the GitHub repository.
Note: This README.md was generated by an AI model. While efforts have been made to ensure accuracy and relevance, it may not fully capture the nuances of the crate.
This crate is a translation of the JUCE module.
JUCE is a c++ software framework for developing high performance audio applications.
Usage falls under the GPLv3 as well as the JUCE commercial license.
See github.com/juce-framework/JUCE and the JUCE license page for details.
This crate is in the process of being translated from c++ to rust. For progress updates, please see the workspacer rust project. designed specifically for rust projects.
Dependencies
~12–23MB
~377K SLoC