Skip to content

Ekhoo/EKLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EKLog

Build Status

A lightweight tool that fills some gaps from NSLog

How To Use It

- (void)example {
    /* Exemple 01 (retro compatibility) */
    EKLog(@"foo");
    
    /* Exemple 02 (retro compatibility) */
    EKLog(@"foo : %@", @"bar");
    
    /* Exemple 03 (retro compatibility) */
    EKLog(@"foo : %d", 3);
    
    /* Exemple 04 (retro compatibility) */
    NSString *bar = @"bar";
    EKLog(@"foo : %@", bar);
    
    /* Exemple 05 New */
    NSString *foo = @"foo";
    EKLog(foo);
    
    /* Exemple 06 New */
    NSArray *array = @[@"foo", @"bar"];
    EKLog(array);
    
    /* Exemple 07 New */
    NSDictionary *dictionary = @{@"foo" : @"bar"};
    EKLog(dictionary);
    
    /* Exemple 08 New */
    NSDate *currentDate = [NSDate date];
    EKLog(currentDate);
}

Results

-[ViewController example] => (ViewController.m:25) : foo
-[ViewController example] => (ViewController.m:28) : foo : bar
-[ViewController example] => (ViewController.m:31) : foo : 3
-[ViewController example] => (ViewController.m:35) : foo : bar
-[ViewController example] => (ViewController.m:39) : foo
-[ViewController example] => (ViewController.m:43) : (
    foo,
    bar
)
-[ViewController example] => (ViewController.m:47) : {
    foo = bar;
}
-[ViewController example] => (ViewController.m:51) : 2014-05-09 12:39:17 +0000

About

A lightweight tool that fills some gaps from NSLog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published