Skip to main content

apple_log/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![allow(clippy::module_name_repetitions)]
4
5pub mod error;
6pub mod ffi;
7pub mod logger;
8pub mod log;
9pub mod os_activity;
10pub mod os_atomic;
11pub mod os_log;
12pub mod os_log_entry_activity;
13pub mod os_log_entry_boundary;
14pub mod os_log_entry_log;
15pub mod os_log_entry_signpost;
16pub mod os_log_store;
17pub mod os_signpost_id;
18pub mod os_signposter;
19
20mod bridge_support;
21
22pub use error::LogError;
23pub use log::{active_activity_id, active_activity_ids, log, log_enabled, log_with_privacy, ActivityIds};
24pub use logger::{Logger, Privacy};
25pub use os_activity::{OSActivity, OSActivityFlags, OSActivityScope};
26pub use os_atomic::{OSAtomicFifoQueue, OSAtomicI32, OSAtomicI64, OSAtomicQueue};
27pub use os_log::{
28    Level, OSLog, CATEGORY_DYNAMIC_STACK_TRACING, CATEGORY_DYNAMIC_TRACING,
29    CATEGORY_POINTS_OF_INTEREST,
30};
31pub use os_log_entry_activity::OSLogEntryActivity;
32pub use os_log_entry_boundary::OSLogEntryBoundary;
33pub use os_log_entry_log::{OSLogEntryLog, OSLogEntryLogLevel};
34pub use os_log_entry_signpost::{OSLogEntrySignpost, OSLogEntrySignpostType};
35pub use os_log_store::{
36    OSLogEntryCommon, OSLogEntryFromProcess, OSLogEntryWithPayload, OSLogEnumeratorOptions,
37    OSLogMessageArgument, OSLogMessageArgumentCategory, OSLogMessageComponent, OSLogPosition,
38    OSLogStore, OSLogStoreCategory, OSLogStoreEntry, OSLogStoreScope,
39};
40pub use os_signpost_id::{OSSignpostId, SignpostId};
41pub use os_signposter::{OSSignpostInterval, OSSignposter};
42
43/// Common imports.
44pub mod prelude {
45    pub use crate::error::LogError;
46    pub use crate::log::{
47        active_activity_id, active_activity_ids, log, log_enabled, log_with_privacy, ActivityIds,
48    };
49    pub use crate::logger::{Logger, Privacy};
50    pub use crate::os_activity::{OSActivity, OSActivityFlags, OSActivityScope};
51    pub use crate::os_atomic::{OSAtomicFifoQueue, OSAtomicI32, OSAtomicI64, OSAtomicQueue};
52    pub use crate::os_log::{
53        Level, OSLog, CATEGORY_DYNAMIC_STACK_TRACING, CATEGORY_DYNAMIC_TRACING,
54        CATEGORY_POINTS_OF_INTEREST,
55    };
56    pub use crate::os_log_entry_activity::OSLogEntryActivity;
57    pub use crate::os_log_entry_boundary::OSLogEntryBoundary;
58    pub use crate::os_log_entry_log::{OSLogEntryLog, OSLogEntryLogLevel};
59    pub use crate::os_log_entry_signpost::{OSLogEntrySignpost, OSLogEntrySignpostType};
60    pub use crate::os_log_store::{
61        OSLogEntryCommon, OSLogEntryFromProcess, OSLogEntryWithPayload, OSLogEnumeratorOptions,
62        OSLogMessageArgument, OSLogMessageArgumentCategory, OSLogMessageComponent, OSLogPosition,
63        OSLogStore, OSLogStoreCategory, OSLogStoreEntry, OSLogStoreScope,
64    };
65    pub use crate::os_signpost_id::{OSSignpostId, SignpostId};
66    pub use crate::os_signposter::{OSSignpostInterval, OSSignposter};
67}