Conversation
- 新增功能: 验证 ModLogger 在单文件模式下的分片写入逻辑 * 引入 FileSizeUtil.CalFileSize 方法计算日志文件大小 * 创建包含 1500 字符的 BigFile.log 测试数据 * 调用 ModLogger.GetOrCreateLogger 并指定 SingleFile 策略及 1024 字节阈值
This is a test. I'm not make sure that it can work.
- 修复问题: 解决构建时因缺少 7-Zip 可执行文件导致的打包失败
* SuntionCore.SPTExtensions.csproj: 在 `<Exec>` 任务中增加 `Condition="Exists('D:\Program Files\7-Zip\7z.exe')"` 判断
* SuntionCore.csproj: 同步修改打包脚本,仅在检测到指定路径下存在 7z.exe 时执行压缩命令
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增功能测试
为
ModLogger在 单文件模式(SingleFile) 下的日志分片写入行为添加测试用例。测试逻辑说明:
FileSizeUtil.CalFileSize方法计算当前日志文件大小BigFile.log)ModLogger.GetOrCreateLogger并配置:SingleFile包发布工作流