Allow user to select minimum log level when running scripts #6269

Closed
opened 2025-12-29 19:38:46 +01:00 by adam · 2 comments
Owner

Originally created by @jeremystretch on GitHub (Mar 28, 2022).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.1.10

Feature type

New functionality

Proposed functionality

Add a dropdown box to the reports page and custom script forms which allows the user to select a desired log level. Only messages equal to or greater than this level will be displayed in the UI.

For example, if the user selects "warning" output, errors and warnings will be shown, but informational logs will not.

Use case

Allows a bit of flexibility for the user to suppress redundant or uninteresting output when running scripts and reports.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Mar 28, 2022). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.1.10 ### Feature type New functionality ### Proposed functionality Add a dropdown box to the reports page and custom script forms which allows the user to select a desired log level. Only messages equal to or greater than this level will be displayed in the UI. For example, if the user selects "warning" output, errors and warnings will be shown, but informational logs will not. ### Use case Allows a bit of flexibility for the user to suppress redundant or uninteresting output when running scripts and reports. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featurecomplexity: low labels 2025-12-29 19:38:46 +01:00
adam closed this issue 2025-12-29 19:38:47 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (May 28, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (May 28, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@jeremystretch commented on GitHub (May 31, 2022):

Changed this to pending milestone assignment, because its implementation will rely on adding a log_level argument to the Report and Script class run() methods.

@jeremystretch commented on GitHub (May 31, 2022): Changed this to pending milestone assignment, because its implementation will rely on adding a `log_level` argument to the Report and Script class `run()` methods.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6269