Last active
August 29, 2015 14:15
-
-
Save yuchan/07fa9241744119a2e8e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// YODDLog.h | |
// CocoaLumberjack Configuration | |
// | |
// Created by Ohashi Yusuke on 1/2/15. | |
// Copyright (c) 2015 Ohashi Yusuke. All rights reserved. | |
// | |
#ifndef _RSLogger_h | |
#define _RSLogger_h | |
#import <DDLog.h> | |
#import <DDASLLogger.h> | |
#import <DDTTYLogger.h> | |
#import <DDFileLogger.h> | |
#ifdef DEBUG | |
static const int ddLogLevel = LOG_LEVEL_VERBOSE; | |
#else | |
static const int ddLogLevel = LOG_LEVEL_WARN; | |
#endif | |
#define RSLOGGER_INIT [DDLog addLogger:[DDASLLogger sharedInstance]]; \ | |
[DDLog addLogger:[DDTTYLogger sharedInstance]]; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment