Authored by gaoqiang xu

first commit

// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
50B1383E1EE816D8009A9168 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 50B1383D1EE816D8009A9168 /* main.m */; };
50B138411EE816D8009A9168 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 50B138401EE816D8009A9168 /* AppDelegate.m */; };
50B138441EE816D8009A9168 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 50B138431EE816D8009A9168 /* ViewController.m */; };
50B138471EE816D8009A9168 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50B138451EE816D8009A9168 /* Main.storyboard */; };
50B138491EE816D8009A9168 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50B138481EE816D8009A9168 /* Assets.xcassets */; };
50B1384C1EE816D8009A9168 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50B1384A1EE816D8009A9168 /* LaunchScreen.storyboard */; };
50B138561EE8279C009A9168 /* DDLog+YOHO.m in Sources */ = {isa = PBXBuildFile; fileRef = 50B138551EE8279C009A9168 /* DDLog+YOHO.m */; };
F8FD8E5F7D51B5DA2591CED2 /* libPods-LoggerDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DF59B499A15EB334B6EC39B8 /* libPods-LoggerDemo.a */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
2174AADE73D4C93B19B05587 /* Pods-LoggerDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LoggerDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-LoggerDemo/Pods-LoggerDemo.release.xcconfig"; sourceTree = "<group>"; };
50B138391EE816D8009A9168 /* LoggerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LoggerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
50B1383D1EE816D8009A9168 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
50B1383F1EE816D8009A9168 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
50B138401EE816D8009A9168 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
50B138421EE816D8009A9168 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
50B138431EE816D8009A9168 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
50B138461EE816D8009A9168 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
50B138481EE816D8009A9168 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
50B1384B1EE816D8009A9168 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
50B1384D1EE816D9009A9168 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
50B138531EE82055009A9168 /* CocoaLumberjack+YOHO.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CocoaLumberjack+YOHO.h"; sourceTree = "<group>"; };
50B138541EE8279C009A9168 /* DDLog+YOHO.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "DDLog+YOHO.h"; sourceTree = "<group>"; };
50B138551EE8279C009A9168 /* DDLog+YOHO.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "DDLog+YOHO.m"; sourceTree = "<group>"; };
90FE846D8DEC937044B233E4 /* Pods-LoggerDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LoggerDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LoggerDemo/Pods-LoggerDemo.debug.xcconfig"; sourceTree = "<group>"; };
DF59B499A15EB334B6EC39B8 /* libPods-LoggerDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-LoggerDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
50B138361EE816D8009A9168 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F8FD8E5F7D51B5DA2591CED2 /* libPods-LoggerDemo.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
345739C236CD8F9C199EB799 /* Frameworks */ = {
isa = PBXGroup;
children = (
DF59B499A15EB334B6EC39B8 /* libPods-LoggerDemo.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
50B138301EE816D8009A9168 = {
isa = PBXGroup;
children = (
50B1383B1EE816D8009A9168 /* LoggerDemo */,
50B1383A1EE816D8009A9168 /* Products */,
FA7A221369719D732FFF2DD5 /* Pods */,
345739C236CD8F9C199EB799 /* Frameworks */,
);
sourceTree = "<group>";
};
50B1383A1EE816D8009A9168 /* Products */ = {
isa = PBXGroup;
children = (
50B138391EE816D8009A9168 /* LoggerDemo.app */,
);
name = Products;
sourceTree = "<group>";
};
50B1383B1EE816D8009A9168 /* LoggerDemo */ = {
isa = PBXGroup;
children = (
50B1383F1EE816D8009A9168 /* AppDelegate.h */,
50B138401EE816D8009A9168 /* AppDelegate.m */,
50B138421EE816D8009A9168 /* ViewController.h */,
50B138431EE816D8009A9168 /* ViewController.m */,
50B138451EE816D8009A9168 /* Main.storyboard */,
50B138481EE816D8009A9168 /* Assets.xcassets */,
50B1384A1EE816D8009A9168 /* LaunchScreen.storyboard */,
50B1384D1EE816D9009A9168 /* Info.plist */,
50B1383C1EE816D8009A9168 /* Supporting Files */,
50B138531EE82055009A9168 /* CocoaLumberjack+YOHO.h */,
50B138541EE8279C009A9168 /* DDLog+YOHO.h */,
50B138551EE8279C009A9168 /* DDLog+YOHO.m */,
);
path = LoggerDemo;
sourceTree = "<group>";
};
50B1383C1EE816D8009A9168 /* Supporting Files */ = {
isa = PBXGroup;
children = (
50B1383D1EE816D8009A9168 /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
FA7A221369719D732FFF2DD5 /* Pods */ = {
isa = PBXGroup;
children = (
90FE846D8DEC937044B233E4 /* Pods-LoggerDemo.debug.xcconfig */,
2174AADE73D4C93B19B05587 /* Pods-LoggerDemo.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
50B138381EE816D8009A9168 /* LoggerDemo */ = {
isa = PBXNativeTarget;
buildConfigurationList = 50B138501EE816D9009A9168 /* Build configuration list for PBXNativeTarget "LoggerDemo" */;
buildPhases = (
D7EC1DDEDC13A23F12400AA2 /* [CP] Check Pods Manifest.lock */,
50B138351EE816D8009A9168 /* Sources */,
50B138361EE816D8009A9168 /* Frameworks */,
50B138371EE816D8009A9168 /* Resources */,
3DA8FFEC9A2AFA5CB111C6C5 /* [CP] Embed Pods Frameworks */,
0EF47B95545707BE7C5339CF /* [CP] Copy Pods Resources */,
);
buildRules = (
);
dependencies = (
);
name = LoggerDemo;
productName = LoggerDemo;
productReference = 50B138391EE816D8009A9168 /* LoggerDemo.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
50B138311EE816D8009A9168 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0830;
ORGANIZATIONNAME = SealedCompany;
TargetAttributes = {
50B138381EE816D8009A9168 = {
CreatedOnToolsVersion = 8.3.3;
DevelopmentTeam = WKQV5DN8XZ;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 50B138341EE816D8009A9168 /* Build configuration list for PBXProject "LoggerDemo" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 50B138301EE816D8009A9168;
productRefGroup = 50B1383A1EE816D8009A9168 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
50B138381EE816D8009A9168 /* LoggerDemo */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
50B138371EE816D8009A9168 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
50B1384C1EE816D8009A9168 /* LaunchScreen.storyboard in Resources */,
50B138491EE816D8009A9168 /* Assets.xcassets in Resources */,
50B138471EE816D8009A9168 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
0EF47B95545707BE7C5339CF /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LoggerDemo/Pods-LoggerDemo-resources.sh\"\n";
showEnvVarsInLog = 0;
};
3DA8FFEC9A2AFA5CB111C6C5 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LoggerDemo/Pods-LoggerDemo-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
D7EC1DDEDC13A23F12400AA2 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
50B138351EE816D8009A9168 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
50B138441EE816D8009A9168 /* ViewController.m in Sources */,
50B138411EE816D8009A9168 /* AppDelegate.m in Sources */,
50B1383E1EE816D8009A9168 /* main.m in Sources */,
50B138561EE8279C009A9168 /* DDLog+YOHO.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
50B138451EE816D8009A9168 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
50B138461EE816D8009A9168 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
50B1384A1EE816D8009A9168 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
50B1384B1EE816D8009A9168 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
50B1384E1EE816D9009A9168 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
};
50B1384F1EE816D9009A9168 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
50B138511EE816D9009A9168 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 90FE846D8DEC937044B233E4 /* Pods-LoggerDemo.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = WKQV5DN8XZ;
INFOPLIST_FILE = LoggerDemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = cn.SealedCompany.LoggerDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
50B138521EE816D9009A9168 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 2174AADE73D4C93B19B05587 /* Pods-LoggerDemo.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = WKQV5DN8XZ;
INFOPLIST_FILE = LoggerDemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = cn.SealedCompany.LoggerDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
50B138341EE816D8009A9168 /* Build configuration list for PBXProject "LoggerDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
50B1384E1EE816D9009A9168 /* Debug */,
50B1384F1EE816D9009A9168 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
50B138501EE816D9009A9168 /* Build configuration list for PBXNativeTarget "LoggerDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
50B138511EE816D9009A9168 /* Debug */,
50B138521EE816D9009A9168 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 50B138311EE816D8009A9168 /* Project object */;
}
... ...
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:LoggerDemo.xcodeproj">
</FileRef>
</Workspace>
... ...
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "50B138381EE816D8009A9168"
BuildableName = "LoggerDemo.app"
BlueprintName = "LoggerDemo"
ReferencedContainer = "container:LoggerDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "50B138381EE816D8009A9168"
BuildableName = "LoggerDemo.app"
BlueprintName = "LoggerDemo"
ReferencedContainer = "container:LoggerDemo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "50B138381EE816D8009A9168"
BuildableName = "LoggerDemo.app"
BlueprintName = "LoggerDemo"
ReferencedContainer = "container:LoggerDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "XcodeColors"
value = "YES"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "50B138381EE816D8009A9168"
BuildableName = "LoggerDemo.app"
BlueprintName = "LoggerDemo"
ReferencedContainer = "container:LoggerDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
... ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>LoggerDemo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>50B138381EE816D8009A9168</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
... ...
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:LoggerDemo.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
... ...
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "0"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Pods/CocoaLumberjack/Classes/Extensions/DDMultiFormatter.m"
timestampString = "518532962.888103"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "80"
endingLineNumber = "80"
landmarkName = "-formatLogMessage:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Pods/CocoaLumberjack/Classes/Extensions/DDDispatchQueueLogFormatter.m"
timestampString = "518532975.623154"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "261"
endingLineNumber = "261"
landmarkName = "-formatLogMessage:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Pods/CocoaLumberjack/Classes/Extensions/DDContextFilterLogFormatter.m"
timestampString = "518532981.303523"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "71"
endingLineNumber = "71"
landmarkName = "-formatLogMessage:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Pods/CocoaLumberjack/Classes/Extensions/DDContextFilterLogFormatter.m"
timestampString = "518532985.528914"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "118"
endingLineNumber = "118"
landmarkName = "-formatLogMessage:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
... ...
//
// AppDelegate.h
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
... ...
//
// AppDelegate.m
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#import "AppDelegate.h"
#import "CocoaLumberjack+YOHO.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[DDLog startWithLogLevel:DDLogLevelAll];
YOHOLogInfo(@"gaoqiang", @"info hahaha %@", @"xixixixix");
YOHOLogError(@"", @"test");
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
... ...
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
... ...
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
... ...
//
// CocoaLumberjack+YOHO.h
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#ifndef CocoaLumberjack_YOHO_h
#define CocoaLumberjack_YOHO_h
#import "DDLog+YOHO.h"
/*
* tag: 可以任何自定义信息,比如开发者信息
* 这个信息会打印到log file里
*/
#define YOHOLogError(tag, frmt, ...) \
[DDLog logWithFunctionName:__FUNCTION__ \
line:__LINE__ \
loggerUser:tag \
errorMessage:frmt, ## __VA_ARGS__]
#define YOHOLogWarn(tag, frmt, ...) \
[DDLog logWithFunctionName:__FUNCTION__ \
line:__LINE__ \
loggerUser:tag \
warnMessage:frmt, ## __VA_ARGS__]
#define YOHOLogDebug(tag, frmt, ...) \
[DDLog logWithFunctionName:__FUNCTION__ \
line:__LINE__ \
loggerUser:tag \
debugMessage:frmt, ## __VA_ARGS__]
#define YOHOLogInfo(tag, frmt, ...) \
[DDLog logWithFunctionName:__FUNCTION__ \
line:__LINE__ \
loggerUser:tag \
infoMessage:frmt, ## __VA_ARGS__]
#endif /* CocoaLumberjack_YOHO_h */
... ...
//
// DDLog+YOHO.h
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#import <CocoaLumberjack/CocoaLumberjack.h>
@interface DDLog (YOHO)
/*
* 在调用其他方法前,先调用此方法!!
*/
+ (void)startWithLogLevel:(DDLogLevel)logLevel;
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
errorMessage:(NSString *)log, ...;
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
infoMessage:(NSString *)log, ...;
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
debugMessage:(NSString *)log, ...;
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
warnMessage:(NSString *)log, ...;
/*
* 如果要改fileLogger的行为,这个方法返回fileLogger实例
*/
- (DDFileLogger *)fileLogger;
@end
... ...
//
// DDLog+YOHO.m
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#import "DDLog+YOHO.h"
#import <objc/runtime.h>
static NSUInteger ddLogLevel = DDLogLevelAll;
static void *kFileLoggerRuntimeKey = &kFileLoggerRuntimeKey;
@implementation DDLog (YOHO)
+ (void)startWithLogLevel:(DDLogLevel)logLevel {
ddLogLevel = logLevel;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[DDLog addLogger:[DDTTYLogger sharedInstance]]; // TTY = Xcode console
[DDLog addLogger:[DDASLLogger sharedInstance]]; // ASL = Apple System Logs
DDFileLogger *fileLogger = [[DDFileLogger alloc] init]; // File Logger
fileLogger.rollingFrequency = 60 * 60 * 24; // 24小时内使用一个1个log文件
fileLogger.logFileManager.maximumNumberOfLogFiles = 10; // 最大10个日志文件
[[DDLog sharedInstance] setFileLogger:fileLogger];
[DDLog addLogger:fileLogger];
});
}
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
errorMessage:(NSString *)log, ... {
va_list args;
va_start(args, log);
NSString *message = [[NSString alloc] initWithFormat:log arguments:args];
va_end(args);
DDLogError(@"[Error] %s %tu %@ \n%@", func, line, logUser?:@"",message);
}
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
infoMessage:(NSString *)log, ... {
va_list args;
va_start(args, log);
NSString *message = [[NSString alloc] initWithFormat:log arguments:args];
va_end(args);
DDLogInfo(@"[Info] %s %tu %@ \n%@", func, line, logUser?:@"",message);
}
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
debugMessage:(NSString *)log, ... {
va_list args;
va_start(args, log);
NSString *message = [[NSString alloc] initWithFormat:log arguments:args];
va_end(args);
DDLogDebug(@"[Debug] %s %tu %@ \n%@", func, line, logUser?:@"",message);
}
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
warnMessage:(NSString *)log, ... {
va_list args;
va_start(args, log);
NSString *message = [[NSString alloc] initWithFormat:log arguments:args];
va_end(args);
DDLogWarn(@"[Warn] %s %tu %@ \n%@", func, line, logUser?:@"",message);
}
- (void)setFileLogger:(DDFileLogger *)fileLogger {
objc_setAssociatedObject(self, kFileLoggerRuntimeKey, fileLogger, OBJC_ASSOCIATION_RETAIN);
}
- (DDFileLogger *)fileLogger {
return objc_getAssociatedObject(self, kFileLoggerRuntimeKey);
}
@end
... ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
... ...
//
// ViewController.h
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
... ...
//
// ViewController.m
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
... ...
//
// main.m
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
... ...
platform :ios, '8.0'
target 'LoggerDemo' do
pod 'CocoaLumberjack'
end
... ...
#
# Be sure to run `pod spec lint YH_Lumberjack.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |s|
s.name = 'YH_Lumberjack'
s.version = '0.0.1'
s.summary = 'A wrapped log system for CocoaLumberjack.'
s.description = <<-DESC
A wrapped log system for CocoaLumberjack.
DESC
s.homepage = 'http://git.yoho.cn/ios/YH_Lumberjack'
s.license = 'MIT'
s.author = { 'Xu gaoqiang' => 'eric.xu@yoho.cn' }
s.requires_arc = true
s.platform = :ios, '7.0'
s.source = { :git => 'http://git.yoho.cn/ios/YH_Lumberjack.git', :tag => s.version.to_s }
s.dependency 'CocoaLumberjack', '~> 3.2.0'
s.frameworks = 'Foundation'
s.default_subspec = 'CocoaLumberjack+YOHO'
s.subspec 'CocoaLumberjack+YOHO' do |ss|
ss.source_files = 'YH_Lumberjack/*'
end
end
... ...
//
// CocoaLumberjack+YOHO.h
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#ifndef CocoaLumberjack_YOHO_h
#define CocoaLumberjack_YOHO_h
#import "DDLog+YOHO.h"
/*
* tag: 可以任何自定义信息,比如开发者信息
* 这个信息会打印到log file里
*/
#define YOHOLogError(tag, frmt, ...) \
[DDLog logWithFunctionName:__FUNCTION__ \
line:__LINE__ \
loggerUser:tag \
errorMessage:frmt, ## __VA_ARGS__]
#define YOHOLogWarn(tag, frmt, ...) \
[DDLog logWithFunctionName:__FUNCTION__ \
line:__LINE__ \
loggerUser:tag \
warnMessage:frmt, ## __VA_ARGS__]
#define YOHOLogDebug(tag, frmt, ...) \
[DDLog logWithFunctionName:__FUNCTION__ \
line:__LINE__ \
loggerUser:tag \
debugMessage:frmt, ## __VA_ARGS__]
#define YOHOLogInfo(tag, frmt, ...) \
[DDLog logWithFunctionName:__FUNCTION__ \
line:__LINE__ \
loggerUser:tag \
infoMessage:frmt, ## __VA_ARGS__]
#endif /* CocoaLumberjack_YOHO_h */
... ...
//
// DDLog+YOHO.h
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#import <CocoaLumberjack/CocoaLumberjack.h>
@interface DDLog (YOHO)
/*
* 在调用其他方法前,先调用此方法!!
*/
+ (void)startWithLogLevel:(DDLogLevel)logLevel;
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
errorMessage:(NSString *)log, ...;
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
infoMessage:(NSString *)log, ...;
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
debugMessage:(NSString *)log, ...;
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
warnMessage:(NSString *)log, ...;
/*
* 如果要改fileLogger的行为,这个方法返回fileLogger实例
*/
- (DDFileLogger *)fileLogger;
@end
... ...
//
// DDLog+YOHO.m
// LoggerDemo
//
// Created by gaoqiang xu on 07/06/2017.
// Copyright © 2017 SealedCompany. All rights reserved.
//
#import "DDLog+YOHO.h"
#import <objc/runtime.h>
static NSUInteger ddLogLevel = DDLogLevelAll;
static void *kFileLoggerRuntimeKey = &kFileLoggerRuntimeKey;
@implementation DDLog (YOHO)
+ (void)startWithLogLevel:(DDLogLevel)logLevel {
ddLogLevel = logLevel;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[DDLog addLogger:[DDTTYLogger sharedInstance]]; // TTY = Xcode console
[DDLog addLogger:[DDASLLogger sharedInstance]]; // ASL = Apple System Logs
DDFileLogger *fileLogger = [[DDFileLogger alloc] init]; // File Logger
fileLogger.rollingFrequency = 60 * 60 * 24; // 24小时内使用一个1个log文件
fileLogger.logFileManager.maximumNumberOfLogFiles = 10; // 最大10个日志文件
[[DDLog sharedInstance] setFileLogger:fileLogger];
[DDLog addLogger:fileLogger];
});
}
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
errorMessage:(NSString *)log, ... {
va_list args;
va_start(args, log);
NSString *message = [[NSString alloc] initWithFormat:log arguments:args];
va_end(args);
DDLogError(@"[Error] %s %tu %@ \n%@", func, line, logUser?:@"",message);
}
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
infoMessage:(NSString *)log, ... {
va_list args;
va_start(args, log);
NSString *message = [[NSString alloc] initWithFormat:log arguments:args];
va_end(args);
DDLogInfo(@"[Info] %s %tu %@ \n%@", func, line, logUser?:@"",message);
}
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
debugMessage:(NSString *)log, ... {
va_list args;
va_start(args, log);
NSString *message = [[NSString alloc] initWithFormat:log arguments:args];
va_end(args);
DDLogDebug(@"[Debug] %s %tu %@ \n%@", func, line, logUser?:@"",message);
}
+ (void)logWithFunctionName:(const char *)func
line:(NSUInteger)line
loggerUser:(NSString *)logUser
warnMessage:(NSString *)log, ... {
va_list args;
va_start(args, log);
NSString *message = [[NSString alloc] initWithFormat:log arguments:args];
va_end(args);
DDLogWarn(@"[Warn] %s %tu %@ \n%@", func, line, logUser?:@"",message);
}
- (void)setFileLogger:(DDFileLogger *)fileLogger {
objc_setAssociatedObject(self, kFileLoggerRuntimeKey, fileLogger, OBJC_ASSOCIATION_RETAIN);
}
- (DDFileLogger *)fileLogger {
return objc_getAssociatedObject(self, kFileLoggerRuntimeKey);
}
@end
... ...