You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use an embedded nats server with opt.LogFile but logging is not logged
Expected behavior
The expected behavior is to see logging content in the specified log file, such as the following: [1] 2024/05/13 11:48:57.455246 [TRC] 127.0.0.1:48990-cid :5 - <<- [SUB statisticUpdate 1]
I am not sure if this is a problem with options, I tried to add other options, but the log is still not recorded.
After that, I found the SetLoggerV2 method, which solved the problem for the time being.
Observed behavior
Use an embedded nats server with opt.LogFile but logging is not logged
Expected behavior
The expected behavior is to see logging content in the specified log file, such as the following:
[1] 2024/05/13 11:48:57.455246 [TRC] 127.0.0.1:48990-cid :5 - <<- [SUB statisticUpdate 1]
Server and client version
tested with nats-server v2.10.12 and nats v1.33.1
Host environment
linux
Steps to reproduce
The text was updated successfully, but these errors were encountered: