本文介绍了使用cocoaLumberjack存储Logfile的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用cocoaLumberjack日志记录框架进行iOS日志记录。
为了在我使用此代码的文件中存储日志。
I am Using cocoaLumberjack logging framework for iOS logging.For storing logs in a file I used this code.
DDFileLogger* fileLogger = [[DDFileLogger alloc] init];
fileLogger.rollingFrequency = 60 * 60 * 24;
fileLogger.logFileManager.maximumNumberOfLogFiles = 7;
[DDLog addLogger:fileLogger];
DDLogVerbose(@"hello");
NSLog(@"hihihihihi");
我无法找到存储此代码生成的日志文件的确切位置。
有人可以帮我解决这个问题吗?
I am unable to find where exactly the logfile generated by this code is stored.Can someone help me with this problem ?
推荐答案
得到答案
它存储在
库/应用支持/ Iphone模拟器/#版本号#/ applications /#your application#/ documents / logs / log-3hex no>
It is stored in Library/Appication Support/Iphone Simulator/#version no#/applications/#your application#/documents/logs/log-3hex no>
这篇关于使用cocoaLumberjack存储Logfile的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!