Skip to content

v1.10.0

Latest

Choose a tag to compare

@F1F88 F1F88 released this 29 Jun 10:16
32b1498

New Feature

Add Function DailyFileSink.GetFilenameLength.

Add Function RotatingFileSink.GetFilenameLength.

Supports log4sp format specifier "%f" to format inf value. (See: sm-2324)

Supports log4sp format specifier "%E" to format Entity Index as Entity Classname. (See: sm-2330)

Fixed

Allow entity references for clients with L and N format specifiers. (See: #32 and sm-2244)

Updated some error messages. (%L, %N, Handle ...) #33

Fixed extension loading may fail in Linux system. #35

Fixed DailyFileSink parameter maxFiles abnormal behavior when the value is out of range.

Fixed the buffer was not cleared after calling Drain and DrainFormatted of RingbufferSink.

Fixed VScode extension - SourcePawn Studio report error: "could not find type "Logger".

Fixed the VScode extension <SourcePawn Studio> that may report an error: "could not find type "Logger".

Mark RingbufferSink::CreateLogger as deprecated. (no use case)

Performance

Improved performance of getting source location when formatting parameters.

Improved the flushing performance of file sink.

Improved performance of CallbackSink and RingBufferSink.


新特性

新增 DailyFileSink.GetFilenameLength 方法

新增 RotatingFileSink.GetFilenameLength 方法

支持 log4sp 格式化的说明符 "%f" 格式化 Inf 值 (参考: sm-2324)

支持 log4sp 格式化的说明符 "E" 格式化 Entity Index 为 Entity Classname (参考: sm-2330)

问题修复

允许格式化说明符 "%L", "%N" 格式化 client references (参考: SM-2244) #32

更新了部分错误消息 (%L, %N, Handle ...) #33

修复 Linux 系统中拓展可能加载失败的问题 #35

修复 DailyFileSink 参数 maxFiles 在取值范围外时的异常行为

修复 RingbufferSink 的 Drain 和 DrainFormatted 执行后没有清理缓冲区

修复 VScode 拓展 <SourcePawn Studio> 可能报错: "could not find type "Logger"

标记 RingbufferSink::CreateLogger 为弃用 (没有使用场景)

优化

提高了参数格式化时, 获取源码位置的性能

提高了文件 Sink 的刷写性能

提高了 CallbackSink 和 RingBufferSink 的性能