Skip to main content

timber_rust/
lib.rs

1// Copyright 2026 Dante Domenech Martinez dante19031999@gmail.com
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![cfg_attr(docsrs, feature(doc_cfg))]
16#![doc = include_str!("../README.md")]
17
18mod config;
19mod def;
20pub mod factory;
21pub mod logger;
22mod manager;
23mod message;
24pub mod service;
25
26pub use factory::LoggerFactory;
27
28pub use config::*;
29pub use def::*;
30pub use manager::*;
31pub use message::*;
32pub use service::Fallback;
33pub use service::Service;
34
35pub use config::Config;
36pub use config::Entry as EntryConfig;
37
38#[cfg(feature = "aws")]
39#[cfg_attr(docsrs, doc(cfg(feature = "aws")))]
40pub use logger::CloudWatch as CloudWatchLogger;
41pub use logger::Direct as DirectLogger;
42pub use logger::Level as LogLevel;
43pub use logger::Logger;
44pub use logger::LoggerImpl;
45#[cfg(feature = "loki")]
46#[cfg_attr(docsrs, doc(cfg(feature = "loki")))]
47pub use logger::Loki as LokiLogger;
48pub use logger::Queued as QueuedLogger;
49pub use logger::Silent as SilentLogger;
50pub use logger::Status as LoggerStatus;
51
52#[cfg(test)]
53mod tests {}