MCPcopy Index your code
hub / github.com/Absolucy/tracing-oslog

github.com/Absolucy/tracing-oslog @v0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.0 ↗ · + Follow
28 symbols 32 edges 8 files 2 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tracing_oslog

This is a tracing layer for the Apple OS logging framework.

Activities are used to handle spans,

Example

use tracing_oslog::OsLogger;

let collector = tracing_subscriber::registry()
    .with(OsLogger::new("moe.absolucy.test", "default"));
tracing::subscriber::set_global_default(collector).expect("failed to set global subscriber");

let number_of_yaks = 3;
// this creates a new event, outside of any spans.
info!(number_of_yaks, "preparing to shave yaks");

let number_shaved = yak_shave::shave_all(number_of_yaks);
info!(
    all_yaks_shaved = number_shaved == number_of_yaks,
    "yak shaving completed."
);

License

Copyright (c) 2021 Lucy lucy@absolucy.moe

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.

  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

  3. This notice may not be removed or altered from any source distribution.

Amendment

I, @Absolucy, fully give permission for any of my code (including the entirety of this project, tracing-oslog), anywhere, no matter the license, to be used to train machine learning models intended to be used for general-purpose programming or code analysis.

Core symbols most depended-on inside this repo

wrapped_os_log_with_type
called by 2
wrapper.c
wrapped_os_log_default
called by 1
wrapper.c
tracing_level_to_oslog_level
called by 1
src/logger.rs
main
called by 0
build.rs
deref
called by 0
src/logger.rs
drop
called by 0
src/logger.rs
default
called by 0
src/logger.rs
new
called by 0
src/logger.rs

Shape

Method 16
Class 8
Function 4

Languages

Rust93%
C7%

Modules by API surface

src/logger.rs12 symbols
src/visitor.rs7 symbols
src/bindings.rs4 symbols
wrapper.c2 symbols
src/stub.rs2 symbols
build.rs1 symbols

For agents

$ claude mcp add tracing-oslog \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page