Merge pull request #4943 from flycash/dev
logs: multiFileLogWriter uses incorrect formatter
This commit is contained in:
commit
411fbb8cdb
@ -6,6 +6,7 @@
|
|||||||
- [Add httplib OpenTelemetry Filter](https://github.com/beego/beego/pull/4888, https://github.com/beego/beego/pull/4915)
|
- [Add httplib OpenTelemetry Filter](https://github.com/beego/beego/pull/4888, https://github.com/beego/beego/pull/4915)
|
||||||
- [Support NewBeegoRequestWithCtx in httplib](https://github.com/beego/beego/pull/4895)
|
- [Support NewBeegoRequestWithCtx in httplib](https://github.com/beego/beego/pull/4895)
|
||||||
- [Support lifecycle callback](https://github.com/beego/beego/pull/4918)
|
- [Support lifecycle callback](https://github.com/beego/beego/pull/4918)
|
||||||
|
- [logs: multiFileLogWriter uses incorrect formatter](https://github.com/beego/beego/pull/4943)
|
||||||
|
|
||||||
# v2.0.2
|
# v2.0.2
|
||||||
See v2.0.2-beta.1
|
See v2.0.2-beta.1
|
||||||
|
|||||||
@ -83,12 +83,12 @@ func (f *multiFileLogWriter) Init(config string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *multiFileLogWriter) Format(lm *LogMsg) string {
|
func (*multiFileLogWriter) Format(lm *LogMsg) string {
|
||||||
return lm.OldStyleFormat()
|
return lm.OldStyleFormat()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *multiFileLogWriter) SetFormatter(fmt LogFormatter) {
|
func (f *multiFileLogWriter) SetFormatter(fmt LogFormatter) {
|
||||||
f.fullLogWriter.SetFormatter(f)
|
f.fullLogWriter.SetFormatter(fmt)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *multiFileLogWriter) Destroy() {
|
func (f *multiFileLogWriter) Destroy() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user