Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/SpriteOvO/spdlog-rs
/ functions
Functions
724 in github.com/SpriteOvO/spdlog-rs
⨍
Functions
724
◇
Types & classes
188
↓ 73 callers
Method
clone
Clones the `Logger`. # Panics Panics if [`Logger::set_flush_period`] is called with `Some` value and then clones the `Logger` instead of the `Arc<Lo
spdlog/src/logger.rs:535
↓ 57 callers
Method
iter
Gets an iterator over the key-value pairs.
spdlog/src/kv.rs:229
↓ 39 callers
Method
build_arc
Builds a `Arc<Logger>`. This is a shorthand method for `.build().map(Arc::new)`. ## Notes Unlike [`Sink`], which almost always needs to work with [
spdlog/src/logger.rs:648
↓ 38 callers
Method
time_date
(&mut self)
spdlog/src/formatter/pattern_formatter/mod.rs:402
↓ 36 callers
Method
as_ref
(&self)
spdlog/src/kv.rs:140
↓ 36 callers
Method
sink
Add a [`Sink`].
spdlog/src/logger.rs:596
↓ 31 callers
Method
build
Builds a [`Logger`].
spdlog/src/logger.rs:634
↓ 29 callers
Function
build_test_logger
(cb: F)
spdlog/src/test_utils/common.rs:200
↓ 28 callers
Function
assert_files_count
(file_name_prefix: &str, expected: usize)
spdlog/src/sink/rotating_file_sink.rs:1187
↓ 28 callers
Method
time
(&mut self, value: bool)
spdlog/src/formatter/full_formatter.rs:219
↓ 21 callers
Method
lock_expect
(&self)
spdlog/src/sync.rs:33
↓ 20 callers
Method
len
(&self)
spdlog/src/kv.rs:194
↓ 17 callers
Method
base_path
(self, base_path: P)
spdlog/src/sink/rotating_file_sink.rs:736
↓ 17 callers
Method
get
(&self, key: Key)
spdlog/src/kv.rs:212
↓ 17 callers
Method
rotation_policy
( self, rotation_policy: RotationPolicy, )
spdlog/src/sink/rotating_file_sink.rs:754
↓ 15 callers
Method
into_iter
(self)
spdlog/src/kv.rs:277
↓ 14 callers
Method
as_str
(&self)
spdlog/src/kv.rs:104
↓ 14 callers
Method
log
(&self, record: &Record)
spdlog/src/sink/rotating_file_sink.rs:265
↓ 14 callers
Function
set_default_logger
Sets the given logger as the new global default logger. # Examples ``` # use std::sync::Arc; use spdlog::prelude::*; # let new_logger = spdlog::def
spdlog/src/lib.rs:517
↓ 14 callers
Function
test_pattern
(pattern: P, formatted: T, style_range: Option<Range<usize>>)
spdlog/src/formatter/pattern_formatter/mod.rs:1220
↓ 13 callers
Method
path
(&self, file_name: &str)
spdlog/benches/spdlog-rs/spdlog-rs.rs:30
↓ 13 callers
Method
set_formatter
Sets the formatter.
spdlog/src/sink/mod.rs:133
↓ 13 callers
Method
set_time
(&mut self, new: SystemTime)
spdlog/src/record.rs:131
↓ 12 callers
Method
to_owned
(&self)
spdlog/src/kv.rs:120
↓ 11 callers
Function
default_logger
()
spdlog/src/lib.rs:479
↓ 11 callers
Method
name
(&self)
spdlog/src/error.rs:211
↓ 11 callers
Method
source_location
(&mut self, value: bool)
spdlog/src/formatter/full_formatter.rs:249
↓ 10 callers
Method
flush_level_filter
(&self)
spdlog/src/logger.rs:260
↓ 10 callers
Method
formatter
Gets the formatter. The returned value is a lock guard, so please avoid storing it in a variable with a longer lifetime.
spdlog/src/sink/mod.rs:128
↓ 10 callers
Method
level_filter
(&self)
spdlog/src/logger.rs:294
↓ 10 callers
Method
sink
(mut self, sink: Arc<dyn Sink>)
spdlog/src/sink/dedup_sink.rs:234
↓ 9 callers
Method
level
(&self)
spdlog/src/record.rs:84
↓ 9 callers
Function
log_crate_proxy
()
spdlog/src/lib.rs:748
↓ 9 callers
Method
rotate_on_open
(mut self, rotate_on_open: bool)
spdlog/src/sink/rotating_file_sink.rs:792
↓ 9 callers
Method
set_level_filter
Sets the log level filter.
spdlog/src/sink/mod.rs:120
↓ 8 callers
Method
format
( &self, record: &Record, dest: &mut StringBuf, _ctx: &mut FormatterContext,
spdlog/src/test_utils/common.rs:179
↓ 8 callers
Method
format
( &self, _record: &spdlog::Record, dest: &mut StringBuf, _ctx: &mut spdlog::fo
spdlog/tests/pattern.rs:163
↓ 8 callers
Method
load
Loads the level filter. # Panics Panics if the ordering is `Release` or `AcqRel`.
spdlog/src/level.rs:404
↓ 8 callers
Method
logger_name
(&mut self, value: bool)
spdlog/src/formatter/full_formatter.rs:228
↓ 8 callers
Method
payload
(&self)
spdlog/src/record.rs:90
↓ 8 callers
Method
truncate
(mut self, truncate: bool)
spdlog/src/sink/file_sink.rs:160
↓ 7 callers
Method
build
(&mut self)
spdlog/src/terminal_style.rs:217
↓ 7 callers
Method
build
(&mut self)
spdlog/src/formatter/full_formatter.rs:274
↓ 7 callers
Method
file_name
(&self)
spdlog/src/source_location.rs:62
↓ 7 callers
Function
format
()
spdlog/src/formatter/full_formatter.rs:366
↓ 7 callers
Method
next
(&mut self)
spdlog/src/kv.rs:289
↓ 7 callers
Function
replace_substring
( mut input: String, substring: impl IntoIterator<Item = &'static str>,
spdlog/tests/pattern.rs:263
↓ 7 callers
Method
set_error_handler
Sets a error handler. Most errors that occur in `Sink` will be returned as directly as possible (e.g. returned to [`Logger`]), but some errors that c
spdlog/src/sink/mod.rs:162
↓ 7 callers
Method
sinks
(&self)
spdlog/src/logger.rs:359
↓ 6 callers
Method
build
(self, _: Infallible)
spdlog/src/sink/rotating_file_sink.rs:850
↓ 6 callers
Method
build
(self, _: Infallible)
spdlog/src/sink/file_sink.rs:218
↓ 6 callers
Function
calc_file_path
()
spdlog/src/sink/rotating_file_sink.rs:970
↓ 6 callers
Method
call_error_handler_internal
(&self, from: impl AsRef<str>, err: Error)
spdlog/src/sink/mod.rs:150
↓ 6 callers
Method
fork_with
# use std::sync::Arc; # use spdlog::prelude::*; # # fn main() -> Result<(), Box<dyn std::error::Error>> { # let test_sink = Arc::new(test_utils::Strin
spdlog/src/logger.rs:420
↓ 6 callers
Method
format
( &self, record: &Record, dest: &mut StringBuf, ctx: &mut FormatterContext,
spdlog/src/formatter/full_formatter.rs:194
↓ 6 callers
Method
get
(&self)
spdlog/src/utils/ref_str.rs:35
↓ 6 callers
Function
init
()
spdlog/benches/spdlog-rs/log-crate-proxy.rs:18
↓ 6 callers
Function
init_log_crate_proxy
()
spdlog/src/lib.rs:741
↓ 6 callers
Method
key_values
(&self)
spdlog/src/record.rs:114
↓ 6 callers
Method
level
(&self, level: Level)
spdlog/src/sink/android_sink.rs:35
↓ 6 callers
Method
level
(&mut self, value: bool)
spdlog/src/formatter/full_formatter.rs:240
↓ 6 callers
Method
max_files
(mut self, max_files: usize)
spdlog/src/sink/rotating_file_sink.rs:777
↓ 6 callers
Function
produce_all
(cond: impl Fn(Level) -> LevelFilter)
spdlog/src/level.rs:608
↓ 6 callers
Function
record
()
spdlog/src/formatter/full_formatter.rs:357
↓ 6 callers
Method
set_flush_period
Sets automatic periodic flushing. This function receives a `&Arc<Self>`. Calling it will spawn a new thread internally. This automatic flushing poli
spdlog/src/logger.rs:336
↓ 6 callers
Method
set_logger
Sets a logger as the new receiver. If the argument `logger` is `None`, the global default logger will be used.
spdlog/src/log_crate_proxy.rs:66
↓ 6 callers
Method
sink
(mut self, sink: Arc<dyn Sink>)
spdlog/src/sink/async_sink/async_pool_sink.rs:160
↓ 6 callers
Method
sinks_mut
(&mut self)
spdlog/src/logger.rs:365
↓ 5 callers
Method
build_arc
Builds a `Arc<AsyncPoolSink>`. This is a shorthand method for `.build().map(Arc::new)`.
spdlog/src/sink/async_sink/async_pool_sink.rs:253
↓ 5 callers
Method
error_handler
(&self)
spdlog/benches/spdlog-rs/spdlog-rs.rs:54
↓ 5 callers
Method
file
(&self)
spdlog/src/source_location.rs:54
↓ 5 callers
Function
filter
()
spdlog/src/level.rs:538
↓ 5 callers
Method
lock_target
(&self)
spdlog/src/sink/write_sink.rs:82
↓ 5 callers
Method
path
(self, path: P)
spdlog/src/sink/file_sink.rs:142
↓ 5 callers
Method
read_expect
(&self)
spdlog/src/sync.rs:42
↓ 5 callers
Method
rotate
(&self, opened_file: &mut MutexGuard<RotatorFileSizeInner>)
spdlog/src/sink/rotating_file_sink.rs:384
↓ 5 callers
Method
set_name
Sets the logger name.
spdlog/src/logger.rs:186
↓ 5 callers
Method
store
Stores a level filter. # Panics Panics if the ordering is `Acquire` or `AcqRel`.
spdlog/src/level.rs:413
↓ 5 callers
Method
thread_pool
(mut self, thread_pool: Arc<ThreadPool>)
spdlog/src/sink/async_sink/async_pool_sink.rs:193
↓ 4 callers
Method
assign_task
(&self, task: Task, overflow_policy: OverflowPolicy)
spdlog/src/thread_pool.rs:86
↓ 4 callers
Function
bench_mt
(logger: Logger, threads_count: usize, iters: usize)
spdlog/benches/spdlog-rs/cmp-cpp.rs:79
↓ 4 callers
Method
build_arc
(self, _: Infallible)
spdlog/src/sink/rotating_file_sink.rs:857
↓ 4 callers
Method
find
(&self, find_custom: bool, placeholder: impl AsRef<str>)
spdlog-internal/src/pattern_parser/registry.rs:51
↓ 4 callers
Method
format
( &self, record: &Record, dest: &mut StringBuf, ctx: &mut FormatterContext,
spdlog/src/formatter/json_formatter.rs:195
↓ 4 callers
Function
from_str
(var: &str)
spdlog/src/env_level.rs:69
↓ 4 callers
Method
get
(&mut self, system_time: SystemTime)
spdlog/src/formatter/local_time_cacher.rs:76
↓ 4 callers
Method
into_token_stream
(self)
spdlog-macros/src/normalize_forward.rs:110
↓ 4 callers
Method
is_empty
(&self)
spdlog/src/kv.rs:203
↓ 4 callers
Method
iter
Iterates through all logging levels. The order of iteration is from more severe to more verbose. # Examples ``` use spdlog::Level; let mut levels
spdlog/src/level.rs:151
↓ 4 callers
Function
open_file_bufw
( path: P, truncate: bool, capacity: Option<usize>, )
spdlog/src/utils/mod.rs:34
↓ 4 callers
Method
prop
(&self)
spdlog/src/sink/file_sink.rs:91
↓ 4 callers
Method
records
(&self)
spdlog/src/test_utils/common.rs:61
↓ 4 callers
Method
reset
(&self)
spdlog/src/test_utils/common.rs:79
↓ 4 callers
Function
save_svg
(fig, path)
spdlog/benches/results/chart-gen.py:245
↓ 4 callers
Method
set
Stores a level filter with `Relaxed` ordering.
spdlog/src/level.rs:395
↓ 4 callers
Method
set_style_range
Sets style range (in bytes) of the formatted text. Users must ensure that indexes are correctly UTF-8 boundary.
spdlog/src/formatter/mod.rs:113
↓ 4 callers
Method
swap
Stores a level filter, returning the old level filter.
spdlog/src/level.rs:418
↓ 4 callers
Method
target
(self, target: W)
spdlog/src/sink/write_sink.rs:159
↓ 3 callers
Function
bench_any
( bencher: &mut Bencher, writer: impl for<'writer> MakeWriter<'writer> + 'static + Send + Sync, )
spdlog/benches/tracing.rs:11
↓ 3 callers
Function
bench_formatter
(bencher: &mut Bencher, formatter: impl Formatter + 'static)
spdlog/benches/spdlog-rs/pattern.rs:79
next →
1–100 of 724, ranked by callers