Skip to content

Commit

Permalink
add emoji to log level name for iOS
Browse files Browse the repository at this point in the history
because we can't tweak Xcode 8 to use color in console
robbiehanson/XcodeColors#88
  • Loading branch information
king6cong committed Apr 21, 2017
1 parent 4195412 commit 30658af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,12 @@ const INITIALIZED: usize = 2;

static MAX_LOG_LEVEL_FILTER: AtomicUsize = ATOMIC_USIZE_INIT;

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

/// An enum representing the available verbosity levels of the logging framework
///
Expand Down

0 comments on commit 30658af

Please sign in to comment.