//
//  ZYJOSSLog.m
//  ZYJOSS_ios_sdk
//
//  Created by zhouzhuo on 8/16/15.
//  Copyright (c) 2015 aliyun.com. All rights reserved.
//

#import "ZYJOSSLog.h"
#import "ZYJOSSUtil.h"

@implementation ZYJOSSLog
+ (void)enableLog {
    if([ZYJOSSUtil hasPhoneFreeSpace]){
        isEnable = YES;
        [ZYJOSSDDLog removeAllLoggers];
        [ZYJOSSDDLog addLogger:[ZYJOSSNSLogger sharedInstance]];
        ZYJOSSDDFileLogger *fileLogger = [[ZYJOSSDDFileLogger alloc] init];
        [ZYJOSSDDLog addLogger:fileLogger];
    }
}

+ (void)disableLog {
    isEnable = NO;
}

+ (BOOL)isLogEnable {
    return isEnable;
}

@end
