Skip to content

Commit 1558edd

Browse files
committed
add emoji to log level name for iOS
because we can't tweak Xcode 8 to use color in console robbiehanson/XcodeColors#88
1 parent 4195412 commit 1558edd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,12 @@ const INITIALIZED: usize = 2;
241241

242242
static MAX_LOG_LEVEL_FILTER: AtomicUsize = ATOMIC_USIZE_INIT;
243243

244+
#[cfg(not(target_os = "ios"))]
244245
static LOG_LEVEL_NAMES: [&'static str; 6] = ["OFF", "ERROR", "WARN", "INFO",
245246
"DEBUG", "TRACE"];
247+
#[cfg(target_os = "ios")]
248+
static LOG_LEVEL_NAMES: [&'static str; 6] = ["OFF", "❤️ ERROR", "💛 WARN", "💙 INFO",
249+
"💚 DEBUG", "💜 TRACE"];
246250

247251
/// An enum representing the available verbosity levels of the logging framework
248252
///

0 commit comments

Comments
 (0)