Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
510 views
in Technique[技术] by (71.8m points)

cocoalumberjack - 如何使用相同的日志文件包含应用程序和应用程序扩展名(How to use same log file for containing app and app extension)

My app consists of two apps - a containing app, and an app extension.

(我的应用程序包含两个应用程序-一个包含应用程序和一个应用程序扩展。)

For each of them, I'm using CocoaLumberjack to log to files.

(对于他们每个人,我正在使用CocoaLumberjack记录到文件。)

The containing app outputs the logs to some files, and the extension outputs the logs to other files.

(包含的应用程序将日志输出到某些文件,而扩展程序将日志输出到其他文件。)

Is it possible that the containing app and the extension would log to the same file?

(包含的应用程序和扩展名是否有可能登录到同一文件?)

So instead of opening one log file to check logs from the containing app, and then opening another file to check logs from the extension, it will be possible to see all the logs at the same file?

(因此,不是打开一个日志文件来检查包含应用程序的日志,然后打开另一个文件来检查扩展中的日志,而是可以查看同一文件中的所有日志?)

  ask by Roee84 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...