Open ricaun opened 1 month ago
You have exceeded your request limit on GitHub, the log says so. There is no way to turn off the logs yet, but we will remove this exception from the journal
You have exceeded your request limit on GitHub,
I think you are wrong, the exception says 'No such host is known. (api.github.com:443)', maybe for a moment my machine goes offline.
The exceptions is logged in the journal? Nice!
Yes, RevitLookup logs important errors to the journal and some messages to the Console. This is useful when users are having issues and require help: https://github.com/jeremytammik/RevitLookup/releases/tag/2025.0.2
No such host is known
- https://github.com/dotnet/runtime/issues/54547
Answer: the OS truly not being able to resolve DNS
Yes, RevitLookup logs important errors to the journal and some messages to the Console. This is useful when users are having issues and require help: https://github.com/jeremytammik/RevitLookup/releases/tag/2025.0.2
Would be possible to change the LogEventLevel
to disable messages to go in the Console/Debug?
I noticed the Event Monitor
is sending messages in the Debug.
2024-10-07 19:49:56 [DBG] RevitLookup.Core.EventMonitor: - missing target
2024-10-07 19:49:56 [DBG] RevitLookup.Core.EventMonitor: RevitLookup EventMonitor: Autodesk.Revit.UI.TextBoxCommandHandler.CanExecuteChanged
2024-10-07 19:49:56 [DBG] RevitLookup.Core.EventMonitor: - missing target
2024-10-07 19:49:56 [DBG] RevitLookup.Core.EventMonitor: RevitLookup EventMonitor: Autodesk.Revit.UI.TextBox.EnterPressed
...
Would be possible to change the
LogEventLevel
to disable messages to go in the Console/Debug?
What reason do we have to disable logging?
I noticed the
Event Monitor
is sending messages in the Debug.
If you get such messages, you have probably compiled the project for Debug mode. This is not a recommended way because it is several times worse in performance and contains more logs. Use Release version
What reason do we have to disable logging?
I don't need that information in the console.
If you get such messages, you have probably compiled the project for Debug mode.
I'm using the last version downloaded from the main release. When I open the Event Monitor
.
In the release the DEBUG
define should be disable, but Serilog
have the configuration toMinimumLevel.Debug
,
I remember one time I changed to Warning
when testing some code to remove the logs.
The only place that use LogDebug
is inside the EventMonitor
.
I don't need that information in the console.
Personal preference cannot be a reason to remove any functionality
In the release the
DEBUG
define should be disable, butSerilog
have the configuration toMinimumLevel.Debug
,
If you run VS in Debug mode, then yes, you will see them because Debug.WriteLine
has Condition attribute only for Debug mode. Logs are written only when you open EventMonitor, and you will not notice them when debugging your own plugins
Personal preference cannot be a reason to remove any functionality
I'm not asking to remove, I'm a big fan of option to disable/change the log level like a configuration for that.
If you run VS in Debug mode, then yes, you will see them because
Debug.WriteLine
has Condition attribute only for Debug mode.
You are wrong, that debug log is written regardless of the Debug mode, my application catch that in a normal Revit run.
The output to the Console
has a minimum level - Information
. Apparently your add-in collects logs not only from Console but also from Debug source.
Check screenshot, the Console output does not contain any entries from RevitLookup:
Yes is collecting from Console and Debug/Trace.
In your case I suppose should show in the Debug Output
, the log is hard-code to MinimumLevel.Debug
.
Maybe should be Warning
in the release version.
The LoggingLevelSwitch
could be used the change the log level on runtime.
Here some reference: https://nblumhardt.com/2014/10/dynamically-changing-the-serilog-level/
The LoggingLevelSwitch
works 😊
https://github.com/ricaun/RevitLookup/tree/dev-loglevel
I create a PR, to add that setting: #300
RevitLookup version
2025.0.10
Steps to reproduce
I have some strange logs when my Revit open, I guess start happen after the
HostedLifecycleService
update.Does not break anything is just annoying to receive random logs when my Revit open.
There are some way to disable the log in the RevitLookup?