mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-07 22:42:06 +08:00
allows you to initialize the log level before you have configured any other part of the framework.
20 lines
397 B
Objective-C
20 lines
397 B
Objective-C
//
|
|
// RKLog.m
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 6/10/11.
|
|
// Copyright 2011 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import "RKLog.h"
|
|
|
|
static BOOL loggingInitialized = NO;
|
|
|
|
void RKLogInitialize() {
|
|
if (loggingInitialized == NO) {
|
|
lcl_configure_by_name("RestKit*", RKLogLevelDefault);
|
|
RKLogInfo(@"RestKit initialized...");
|
|
loggingInitialized = YES;
|
|
}
|
|
}
|