Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

DDTTYLogger: By default apply setForegroundColor:backgroundColor:forFlag: to LOG_CONTEXT_ALL #154

Merged
merged 1 commit into from

2 participants

@rivera-ernesto
Collaborator

Until now this method applied to only the default context (0).

Follows #146.

@rivera-ernesto rivera-ernesto DDTTYLogger: By default apply setForegroundColor:backgroundColor:forF…
…lag: to LOG_CONTEXT_ALL

Until now this method applied to only the default context `(0)`.

Follows #146.
938214c
@bpoplauschi bpoplauschi merged commit 83d9c30 into CocoaLumberjack:master
@rivera-ernesto rivera-ernesto deleted the rivera-ernesto:ttylogger_applytoallcontexts branch
@bpoplauschi bpoplauschi added this to the 1.6.3 milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 5, 2013
  1. @rivera-ernesto

    DDTTYLogger: By default apply setForegroundColor:backgroundColor:forF…

    rivera-ernesto authored
    …lag: to LOG_CONTEXT_ALL
    
    Until now this method applied to only the default context `(0)`.
    
    Follows #146.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +1 −1  Lumberjack/DDTTYLogger.h
  2. +1 −1  Lumberjack/DDTTYLogger.m
View
2  Lumberjack/DDTTYLogger.h
@@ -105,7 +105,7 @@
* If you run the application from a shell, then DDTTYLogger will automatically map the given color to
* the closest available color. (xterm-256color or xterm-color which have 256 and 16 supported colors respectively.)
*
- * This method invokes setForegroundColor:backgroundColor:forFlag:context: and passes the default context (0).
+ * This method invokes setForegroundColor:backgroundColor:forFlag:context: and applies it to `LOG_CONTEXT_ALL`.
**/
#if TARGET_OS_IPHONE
- (void)setForegroundColor:(UIColor *)txtColor backgroundColor:(UIColor *)bgColor forFlag:(int)mask;
View
2  Lumberjack/DDTTYLogger.m
@@ -931,7 +931,7 @@ - (void)setColorsEnabled:(BOOL)newColorsEnabled
- (void)setForegroundColor:(OSColor *)txtColor backgroundColor:(OSColor *)bgColor forFlag:(int)mask
{
- [self setForegroundColor:txtColor backgroundColor:bgColor forFlag:mask context:0];
+ [self setForegroundColor:txtColor backgroundColor:bgColor forFlag:mask context:LOG_CONTEXT_ALL];
}
- (void)setForegroundColor:(OSColor *)txtColor backgroundColor:(OSColor *)bgColor forFlag:(int)mask context:(int)ctxt
Something went wrong with that request. Please try again.