MCPcopy Index your code

hub / github.com/SpriteOvO/spdlog-rs / functions

Functions724 in github.com/SpriteOvO/spdlog-rs

↓ 73 callersMethodclone
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 callersMethoditer
Gets an iterator over the key-value pairs.
spdlog/src/kv.rs:229
↓ 39 callersMethodbuild_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 callersMethodtime_date
(&mut self)
spdlog/src/formatter/pattern_formatter/mod.rs:402
↓ 36 callersMethodas_ref
(&self)
spdlog/src/kv.rs:140
↓ 36 callersMethodsink
Add a [`Sink`].
spdlog/src/logger.rs:596
↓ 31 callersMethodbuild
Builds a [`Logger`].
spdlog/src/logger.rs:634
↓ 29 callersFunctionbuild_test_logger
(cb: F)
spdlog/src/test_utils/common.rs:200
↓ 28 callersFunctionassert_files_count
(file_name_prefix: &str, expected: usize)
spdlog/src/sink/rotating_file_sink.rs:1187
↓ 28 callersMethodtime
(&mut self, value: bool)
spdlog/src/formatter/full_formatter.rs:219
↓ 21 callersMethodlock_expect
(&self)
spdlog/src/sync.rs:33
↓ 20 callersMethodlen
(&self)
spdlog/src/kv.rs:194
↓ 17 callersMethodbase_path
(self, base_path: P)
spdlog/src/sink/rotating_file_sink.rs:736
↓ 17 callersMethodget
(&self, key: Key)
spdlog/src/kv.rs:212
↓ 17 callersMethodrotation_policy
( self, rotation_policy: RotationPolicy, )
spdlog/src/sink/rotating_file_sink.rs:754
↓ 15 callersMethodinto_iter
(self)
spdlog/src/kv.rs:277
↓ 14 callersMethodas_str
(&self)
spdlog/src/kv.rs:104
↓ 14 callersMethodlog
(&self, record: &Record)
spdlog/src/sink/rotating_file_sink.rs:265
↓ 14 callersFunctionset_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 callersFunctiontest_pattern
(pattern: P, formatted: T, style_range: Option<Range<usize>>)
spdlog/src/formatter/pattern_formatter/mod.rs:1220
↓ 13 callersMethodpath
(&self, file_name: &str)
spdlog/benches/spdlog-rs/spdlog-rs.rs:30
↓ 13 callersMethodset_formatter
Sets the formatter.
spdlog/src/sink/mod.rs:133
↓ 13 callersMethodset_time
(&mut self, new: SystemTime)
spdlog/src/record.rs:131
↓ 12 callersMethodto_owned
(&self)
spdlog/src/kv.rs:120
↓ 11 callersFunctiondefault_logger
()
spdlog/src/lib.rs:479
↓ 11 callersMethodname
(&self)
spdlog/src/error.rs:211
↓ 11 callersMethodsource_location
(&mut self, value: bool)
spdlog/src/formatter/full_formatter.rs:249
↓ 10 callersMethodflush_level_filter
(&self)
spdlog/src/logger.rs:260
↓ 10 callersMethodformatter
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 callersMethodlevel_filter
(&self)
spdlog/src/logger.rs:294
↓ 10 callersMethodsink
(mut self, sink: Arc<dyn Sink>)
spdlog/src/sink/dedup_sink.rs:234
↓ 9 callersMethodlevel
(&self)
spdlog/src/record.rs:84
↓ 9 callersFunctionlog_crate_proxy
()
spdlog/src/lib.rs:748
↓ 9 callersMethodrotate_on_open
(mut self, rotate_on_open: bool)
spdlog/src/sink/rotating_file_sink.rs:792
↓ 9 callersMethodset_level_filter
Sets the log level filter.
spdlog/src/sink/mod.rs:120
↓ 8 callersMethodformat
( &self, record: &Record, dest: &mut StringBuf, _ctx: &mut FormatterContext,
spdlog/src/test_utils/common.rs:179
↓ 8 callersMethodformat
( &self, _record: &spdlog::Record, dest: &mut StringBuf, _ctx: &mut spdlog::fo
spdlog/tests/pattern.rs:163
↓ 8 callersMethodload
Loads the level filter. # Panics Panics if the ordering is `Release` or `AcqRel`.
spdlog/src/level.rs:404
↓ 8 callersMethodlogger_name
(&mut self, value: bool)
spdlog/src/formatter/full_formatter.rs:228
↓ 8 callersMethodpayload
(&self)
spdlog/src/record.rs:90
↓ 8 callersMethodtruncate
(mut self, truncate: bool)
spdlog/src/sink/file_sink.rs:160
↓ 7 callersMethodbuild
(&mut self)
spdlog/src/terminal_style.rs:217
↓ 7 callersMethodbuild
(&mut self)
spdlog/src/formatter/full_formatter.rs:274
↓ 7 callersMethodfile_name
(&self)
spdlog/src/source_location.rs:62
↓ 7 callersFunctionformat
()
spdlog/src/formatter/full_formatter.rs:366
↓ 7 callersMethodnext
(&mut self)
spdlog/src/kv.rs:289
↓ 7 callersFunctionreplace_substring
( mut input: String, substring: impl IntoIterator<Item = &'static str>,
spdlog/tests/pattern.rs:263
↓ 7 callersMethodset_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 callersMethodsinks
(&self)
spdlog/src/logger.rs:359
↓ 6 callersMethodbuild
(self, _: Infallible)
spdlog/src/sink/rotating_file_sink.rs:850
↓ 6 callersMethodbuild
(self, _: Infallible)
spdlog/src/sink/file_sink.rs:218
↓ 6 callersFunctioncalc_file_path
()
spdlog/src/sink/rotating_file_sink.rs:970
↓ 6 callersMethodcall_error_handler_internal
(&self, from: impl AsRef<str>, err: Error)
spdlog/src/sink/mod.rs:150
↓ 6 callersMethodfork_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 callersMethodformat
( &self, record: &Record, dest: &mut StringBuf, ctx: &mut FormatterContext,
spdlog/src/formatter/full_formatter.rs:194
↓ 6 callersMethodget
(&self)
spdlog/src/utils/ref_str.rs:35
↓ 6 callersFunctioninit
()
spdlog/benches/spdlog-rs/log-crate-proxy.rs:18
↓ 6 callersFunctioninit_log_crate_proxy
()
spdlog/src/lib.rs:741
↓ 6 callersMethodkey_values
(&self)
spdlog/src/record.rs:114
↓ 6 callersMethodlevel
(&self, level: Level)
spdlog/src/sink/android_sink.rs:35
↓ 6 callersMethodlevel
(&mut self, value: bool)
spdlog/src/formatter/full_formatter.rs:240
↓ 6 callersMethodmax_files
(mut self, max_files: usize)
spdlog/src/sink/rotating_file_sink.rs:777
↓ 6 callersFunctionproduce_all
(cond: impl Fn(Level) -> LevelFilter)
spdlog/src/level.rs:608
↓ 6 callersFunctionrecord
()
spdlog/src/formatter/full_formatter.rs:357
↓ 6 callersMethodset_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 callersMethodset_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 callersMethodsink
(mut self, sink: Arc<dyn Sink>)
spdlog/src/sink/async_sink/async_pool_sink.rs:160
↓ 6 callersMethodsinks_mut
(&mut self)
spdlog/src/logger.rs:365
↓ 5 callersMethodbuild_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 callersMethoderror_handler
(&self)
spdlog/benches/spdlog-rs/spdlog-rs.rs:54
↓ 5 callersMethodfile
(&self)
spdlog/src/source_location.rs:54
↓ 5 callersFunctionfilter
()
spdlog/src/level.rs:538
↓ 5 callersMethodlock_target
(&self)
spdlog/src/sink/write_sink.rs:82
↓ 5 callersMethodpath
(self, path: P)
spdlog/src/sink/file_sink.rs:142
↓ 5 callersMethodread_expect
(&self)
spdlog/src/sync.rs:42
↓ 5 callersMethodrotate
(&self, opened_file: &mut MutexGuard<RotatorFileSizeInner>)
spdlog/src/sink/rotating_file_sink.rs:384
↓ 5 callersMethodset_name
Sets the logger name.
spdlog/src/logger.rs:186
↓ 5 callersMethodstore
Stores a level filter. # Panics Panics if the ordering is `Acquire` or `AcqRel`.
spdlog/src/level.rs:413
↓ 5 callersMethodthread_pool
(mut self, thread_pool: Arc<ThreadPool>)
spdlog/src/sink/async_sink/async_pool_sink.rs:193
↓ 4 callersMethodassign_task
(&self, task: Task, overflow_policy: OverflowPolicy)
spdlog/src/thread_pool.rs:86
↓ 4 callersFunctionbench_mt
(logger: Logger, threads_count: usize, iters: usize)
spdlog/benches/spdlog-rs/cmp-cpp.rs:79
↓ 4 callersMethodbuild_arc
(self, _: Infallible)
spdlog/src/sink/rotating_file_sink.rs:857
↓ 4 callersMethodfind
(&self, find_custom: bool, placeholder: impl AsRef<str>)
spdlog-internal/src/pattern_parser/registry.rs:51
↓ 4 callersMethodformat
( &self, record: &Record, dest: &mut StringBuf, ctx: &mut FormatterContext,
spdlog/src/formatter/json_formatter.rs:195
↓ 4 callersFunctionfrom_str
(var: &str)
spdlog/src/env_level.rs:69
↓ 4 callersMethodget
(&mut self, system_time: SystemTime)
spdlog/src/formatter/local_time_cacher.rs:76
↓ 4 callersMethodinto_token_stream
(self)
spdlog-macros/src/normalize_forward.rs:110
↓ 4 callersMethodis_empty
(&self)
spdlog/src/kv.rs:203
↓ 4 callersMethoditer
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 callersFunctionopen_file_bufw
( path: P, truncate: bool, capacity: Option<usize>, )
spdlog/src/utils/mod.rs:34
↓ 4 callersMethodprop
(&self)
spdlog/src/sink/file_sink.rs:91
↓ 4 callersMethodrecords
(&self)
spdlog/src/test_utils/common.rs:61
↓ 4 callersMethodreset
(&self)
spdlog/src/test_utils/common.rs:79
↓ 4 callersFunctionsave_svg
(fig, path)
spdlog/benches/results/chart-gen.py:245
↓ 4 callersMethodset
Stores a level filter with `Relaxed` ordering.
spdlog/src/level.rs:395
↓ 4 callersMethodset_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 callersMethodswap
Stores a level filter, returning the old level filter.
spdlog/src/level.rs:418
↓ 4 callersMethodtarget
(self, target: W)
spdlog/src/sink/write_sink.rs:159
↓ 3 callersFunctionbench_any
( bencher: &mut Bencher, writer: impl for<'writer> MakeWriter<'writer> + 'static + Send + Sync, )
spdlog/benches/tracing.rs:11
↓ 3 callersFunctionbench_formatter
(bencher: &mut Bencher, formatter: impl Formatter + 'static)
spdlog/benches/spdlog-rs/pattern.rs:79
next →1–100 of 724, ranked by callers