Skip to main content

slog_info

Macro slog_info 

Source
macro_rules! slog_info {
    ($($arg:tt)*) => { ... };
}
Expand description

Log at INFO level with the optional [ses_xxx] session tag.

Use this instead of log::info!(...) in per-request code paths. The macro automatically reads the thread-local session id and formats:

With session:    [aft] [ses_abcd1234] semantic index: rebuilding from scratch
Without session: [aft] semantic index: rebuilding from scratch

The [aft] / [aft-lsp] outer prefix is added by env_logger based on the log target — do NOT inline it into the macro body, that produces a doubled [aft-lsp] [aft] prefix when LSP modules log.