mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #1622] [MERGED] [FEAT] Add log module in lib_ccxr #2334
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1622
Author: @IshanGrover2004
Created: 7/6/2024
Status: ✅ Merged
Merged: 7/16/2024
Merged by: @PunitLodha
Base:
master← Head:migration-log-module📝 Commits (10+)
32d0097chore: Add bitflags crate as dependencyb72d020feat: Add function to initialize Rust logger using options in C537ceb5feat: Add new modulelog9dd7d9brefactor: Add ccx_s_option into list of bindgen struct2ef9888feat: Add Initialize logger function5447976feat: All logging functions & macrosb93c49achore: Fix clippy4774fdcdocs: Mention in Changelogs3d4bc27chore: format issue fix346741efix: Remove activity_header from rust & use initially to print in C📊 Changes
12 files changed (+655 additions, -13 deletions)
View changed files
📝
docs/CHANGES.TXT(+1 -0)📝
src/lib_ccx/activity.c(+3 -8)📝
src/lib_ccx/lib_ccx.c(+6 -0)📝
src/lib_ccx/lib_ccx.h(+4 -0)📝
src/lib_ccx/utility.c(+0 -1)📝
src/rust/Cargo.lock(+7 -4)📝
src/rust/build.rs(+1 -0)📝
src/rust/lib_ccxr/Cargo.lock(+9 -0)📝
src/rust/lib_ccxr/Cargo.toml(+1 -0)➕
src/rust/lib_ccxr/src/util/log.rs(+572 -0)📝
src/rust/lib_ccxr/src/util/mod.rs(+2 -0)📝
src/rust/src/libccxr_exports/mod.rs(+49 -0)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Closes #1553
This PR adds functions and macros used for logging operations. The functions of this PR have not been integrated into the C codebase since there is no safe or easy way to pass variable number of arguments (as used in printf) from C to Rust. But the code for initializing the logger from C to Rust is included.
After this PR merge, anybody can use macros like
info!,fata!,error!,debug!(Just likemprint,fatal, etc in C) for logging purposes after initializing logger usingccxr_init_basic_logger🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.