We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c013fa5 commit b691382Copy full SHA for b691382
1 file changed
plugins/log/src/lib.rs
@@ -181,6 +181,10 @@ pub enum TargetKind {
181
///
182
/// This requires the webview to subscribe to log events, via this plugins `attachConsole` function.
183
Webview,
184
+ /// Send logs to a fern::Dispatch
185
+ ///
186
+ /// You can use this to construct arbitrary log targets.
187
+ Dispatch(fern::Dispatch),
188
}
189
190
/// A log target.
@@ -478,6 +482,7 @@ impl Builder {
478
482
});
479
483
})
480
484
485
+ TargetKind::Dispatch(dispatch) => dispatch.into(),
481
486
};
487
target_dispatch = target_dispatch.chain(logger);
488
0 commit comments