Android Logcat旋转大小和旋转参数数 [英] Android Logcat Rotation Size and Number Of Rotation Parameters

查看:88
本文介绍了Android Logcat旋转大小和旋转参数数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android开发者!

Hi Android Developers!

我试图弄清楚logcat实用程序的-r和-n参数是什么意思.当我的日志文件大小超过-r千字节数时;它会删除我的日志文件的全部内容,使之为空,还是创建一个新文件以继续进行日志记录过程? -n的ofc到底是什么意思?

I am trying to figure out what -r and -n parameters for logcat utilitiy mean. When my log file exceeds -r number of kilobytes in size; it deletes the whole content of my log file which leaves it empty or creates a new file to continue with the logging process? What exactly does -n mean as well, ofc?

感谢您的提前答复, 伊尔克

Thanks for your replies in advance, Ilker

推荐答案

-n 指定轮换日志的最大数量
-r 指定日志文件应旋转的大小

-n specifies the maximum number of rotated logs
-r specifies the size after which the log file should rotate

请参见 http://developer.android.com/tools/debugging/debugging -log.html 了解更多信息.

这篇关于Android Logcat旋转大小和旋转参数数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆