Skip to content

refactor: NetfoxLogger no longer depends on netfox#336

Merged
elementbound merged 3 commits intomainfrom
refactor/no-log-dependency
Nov 21, 2024
Merged

refactor: NetfoxLogger no longer depends on netfox#336
elementbound merged 3 commits intomainfrom
refactor/no-log-dependency

Conversation

@elementbound
Copy link
Copy Markdown
Contributor

Directly referencing NetworkTime and NetworkEvents in _NetfoxLogger means that netfox.internals depends on netfox. This creates both a circular dependency, and an unnecessary dependency for netfox.noray. The noray integration doesn't need netfox itself to work properly, and should be kept usable without netfox itself.

Instead, tags can be registered in _NetfoxLogger, which are functions that provide information for all log messages. Tags are ordered, to ensure the same log message format, regardless of the order the registering may run their init functions.

@elementbound elementbound merged commit a53da40 into main Nov 21, 2024
@elementbound elementbound deleted the refactor/no-log-dependency branch November 21, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant