Closed benxionghu closed 3 years ago
--version exceptionless/api:6.0.0 exceptionless/job:6.0.0 exceptionless/ui:2.9.2 exceptionless/ elasticsearch:7.5.2 kibana:7.5.2
--- 代码配置 启动配置
程序配置
appsettings.json
ExceptionlessUI 秀
日志记录代码
我想知道为什么我的项目中只记录了WARNING和ERROR的日志,你能给我一些想法吗?
ExceptionlessClient.Default.CreateLog("11", "测试日志消息", LogLevel.Debug); ExceptionlessClient.Default.CreateLog("11", "测试日志消息", LogLevel.Info); Tried to use this method to record but also to no avail
Hello,
Can you please try setting: ExceptionlessClient.Default.Configuration.SetDefaultMinLogLevel(LogLevel.Debug)
https://github.com/exceptionless/Exceptionless.Net/blob/master/src/Exceptionless/Configuration/ExceptionlessConfiguration.cs#L213 I'm thinking your log levels are being ignored by the default settings until sever settings are retrieved.
Hello,
Can you please try setting:
ExceptionlessClient.Default.Configuration.SetDefaultMinLogLevel(LogLevel.Debug)
https://github.com/exceptionless/Exceptionless.Net/blob/master/src/Exceptionless/Configuration/ExceptionlessConfiguration.cs#L213 I'm thinking your log levels are being ignored by the default settings until sever settings are retrieved.
Thank you for fixing the current issue after setting the log level
Thanks for the update. @ejsmith we may want to tweak this or add something to the readmes as I've been asked this quite a few times.
--Version exceptionless/api:6.0.0 exceptionless/job:6.0.0 exceptionless/ui:2.9.2 exceptionless/elasticsearch:7.5.2 kibana:7.5.2
--- Code configuration Startup configuration![image](https://user-images.githubusercontent.com/33918700/122180047-aa387e00-ceba-11eb-9054-b077c74b64b5.png)
Program configuration![image](https://user-images.githubusercontent.com/33918700/122180102-b6244000-ceba-11eb-97d6-ccd88bddfbd8.png)
appsettings.json
ExceptionlessUi Show![image](https://user-images.githubusercontent.com/33918700/122180406-fa174500-ceba-11eb-8435-149b9e77653e.png)
log Record Code
I wonder why only the logs of WARNING and ERROR are logged in my project ,Can you give me some ideas?