Skip to content

Instantly share code, notes, and snippets.

@yuchan
Last active August 29, 2015 14:15
Show Gist options
  • Save yuchan/07fa9241744119a2e8e2 to your computer and use it in GitHub Desktop.
Save yuchan/07fa9241744119a2e8e2 to your computer and use it in GitHub Desktop.
//
// 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