pub struct LspLogger { /* private fields */ }
Implementations§
Source§impl LspLogger
impl LspLogger
Sourcepub fn init_early(level: LevelFilter) -> Result<(), SetLoggerError>
pub fn init_early(level: LevelFilter) -> Result<(), SetLoggerError>
Initialize the logger early without an LSP client Logs will be sent to stderr and buffered
Sourcepub fn attach_client(client: Client, level: LevelFilter)
pub fn attach_client(client: Client, level: LevelFilter)
Attach the LSP client to the logger and flush buffered logs
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LspLogger
impl RefUnwindSafe for LspLogger
impl Send for LspLogger
impl Sync for LspLogger
impl Unpin for LspLogger
impl UnwindSafe for LspLogger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more