@@ -46,7 +46,7 @@ use tracing_core::{
46
46
use tracing_log:: NormalizeEvent ;
47
47
48
48
#[ cfg( feature = "ansi" ) ]
49
- use ansi_term :: { Colour , Style } ;
49
+ use nu_ansi_term :: { Color , Style } ;
50
50
51
51
#[ cfg( feature = "json" ) ]
52
52
mod json;
@@ -101,7 +101,7 @@ pub use pretty::*;
101
101
/// does not support ANSI escape codes (such as a log file), and they should
102
102
/// not be emitted.
103
103
///
104
- /// Crates like [`ansi_term `] and [`owo-colors`] can be used to add ANSI
104
+ /// Crates like [`nu_ansi_term `] and [`owo-colors`] can be used to add ANSI
105
105
/// escape codes to formatted output.
106
106
///
107
107
/// * The actual [`Event`] to be formatted.
@@ -189,7 +189,7 @@ pub use pretty::*;
189
189
/// [implements `FormatFields`]: super::FmtContext#impl-FormatFields<'writer>
190
190
/// [ANSI terminal escape codes]: https://en.wikipedia.org/wiki/ANSI_escape_code
191
191
/// [`Writer::has_ansi_escapes`]: Writer::has_ansi_escapes
192
- /// [`ansi_term `]: https://crates.io/crates/ansi_term
192
+ /// [`nu_ansi_term `]: https://crates.io/crates/nu_ansi_term
193
193
/// [`owo-colors`]: https://crates.io/crates/owo-colors
194
194
/// [default formatter]: Full
195
195
pub trait FormatEvent < S , N >
@@ -1484,11 +1484,11 @@ impl<'a> fmt::Display for FmtLevel<'a> {
1484
1484
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1485
1485
if self . ansi {
1486
1486
match * self . level {
1487
- Level :: TRACE => write ! ( f, "{}" , Colour :: Purple . paint( TRACE_STR ) ) ,
1488
- Level :: DEBUG => write ! ( f, "{}" , Colour :: Blue . paint( DEBUG_STR ) ) ,
1489
- Level :: INFO => write ! ( f, "{}" , Colour :: Green . paint( INFO_STR ) ) ,
1490
- Level :: WARN => write ! ( f, "{}" , Colour :: Yellow . paint( WARN_STR ) ) ,
1491
- Level :: ERROR => write ! ( f, "{}" , Colour :: Red . paint( ERROR_STR ) ) ,
1487
+ Level :: TRACE => write ! ( f, "{}" , Color :: Purple . paint( TRACE_STR ) ) ,
1488
+ Level :: DEBUG => write ! ( f, "{}" , Color :: Blue . paint( DEBUG_STR ) ) ,
1489
+ Level :: INFO => write ! ( f, "{}" , Color :: Green . paint( INFO_STR ) ) ,
1490
+ Level :: WARN => write ! ( f, "{}" , Color :: Yellow . paint( WARN_STR ) ) ,
1491
+ Level :: ERROR => write ! ( f, "{}" , Color :: Red . paint( ERROR_STR ) ) ,
1492
1492
}
1493
1493
} else {
1494
1494
match * self . level {
0 commit comments