Junk in log filenames

I want to create log files, as in example shown:


 LogUtils.getLog2FileConfig().configLog2FileEnable(true)
                            // targetSdkVersion >= 23 需要确保有写sdcard权限
                            .configLog2FilePath(Environment.getExternalStorageDirectory().getPath() + File.separator + "LWN_logs/")
                            .configLog2FileNameFormat("%d{ddMMyyyy}.log")
                            .configLogFileEngine(new LogFileEngineFactory(context));

Problem is that filenames contains junk symbols after extention and even can not be deleted.

screenshot_2018-12-29-13-30-07-0801631188

When i set filename as configLog2FileNameFormat("log.log") filename is as expected.

How can i fix it?

该提问来源于开源项目:pengwei1024/LogUtils

查看全部
weixin_39583162
weixin_39583162
2020/11/25 20:56
  • 点赞
  • 收藏
  • 回答
    私信

2个回复