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 log;
8pub mod logger;
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::{
24 active_activity_id, active_activity_ids, log, log_enabled, log_with_privacy, ActivityIds,
25};
26pub use logger::{Logger, Privacy};
27pub use os_activity::{OSActivity, OSActivityFlags, OSActivityScope};
28pub use os_atomic::{OSAtomicFifoQueue, OSAtomicI32, OSAtomicI64, OSAtomicQueue};
29pub use os_log::{
30 Level, OSLog, CATEGORY_DYNAMIC_STACK_TRACING, CATEGORY_DYNAMIC_TRACING,
31 CATEGORY_POINTS_OF_INTEREST,
32};
33pub use os_log_entry_activity::OSLogEntryActivity;
34pub use os_log_entry_boundary::OSLogEntryBoundary;
35pub use os_log_entry_log::{OSLogEntryLog, OSLogEntryLogLevel};
36pub use os_log_entry_signpost::{OSLogEntrySignpost, OSLogEntrySignpostType};
37pub use os_log_store::{
38 OSLogEntryCommon, OSLogEntryFromProcess, OSLogEntryWithPayload, OSLogEnumeratorOptions,
39 OSLogMessageArgument, OSLogMessageArgumentCategory, OSLogMessageComponent, OSLogPosition,
40 OSLogStore, OSLogStoreCategory, OSLogStoreEntry, OSLogStoreScope,
41};
42pub use os_signpost_id::{OSSignpostId, SignpostId};
43pub use os_signposter::{OSSignpostInterval, OSSignposter};
44
45pub mod prelude {
47 pub use crate::error::LogError;
48 pub use crate::log::{
49 active_activity_id, active_activity_ids, log, log_enabled, log_with_privacy, ActivityIds,
50 };
51 pub use crate::logger::{Logger, Privacy};
52 pub use crate::os_activity::{OSActivity, OSActivityFlags, OSActivityScope};
53 pub use crate::os_atomic::{OSAtomicFifoQueue, OSAtomicI32, OSAtomicI64, OSAtomicQueue};
54 pub use crate::os_log::{
55 Level, OSLog, CATEGORY_DYNAMIC_STACK_TRACING, CATEGORY_DYNAMIC_TRACING,
56 CATEGORY_POINTS_OF_INTEREST,
57 };
58 pub use crate::os_log_entry_activity::OSLogEntryActivity;
59 pub use crate::os_log_entry_boundary::OSLogEntryBoundary;
60 pub use crate::os_log_entry_log::{OSLogEntryLog, OSLogEntryLogLevel};
61 pub use crate::os_log_entry_signpost::{OSLogEntrySignpost, OSLogEntrySignpostType};
62 pub use crate::os_log_store::{
63 OSLogEntryCommon, OSLogEntryFromProcess, OSLogEntryWithPayload, OSLogEnumeratorOptions,
64 OSLogMessageArgument, OSLogMessageArgumentCategory, OSLogMessageComponent, OSLogPosition,
65 OSLogStore, OSLogStoreCategory, OSLogStoreEntry, OSLogStoreScope,
66 };
67 pub use crate::os_signpost_id::{OSSignpostId, SignpostId};
68 pub use crate::os_signposter::{OSSignpostInterval, OSSignposter};
69}