Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename IUIComponentLogger to ILogger, make it usable by other types #74

Merged
merged 3 commits into from
Oct 23, 2022

Conversation

jonisavo
Copy link
Owner

IUIComponentLogger has been renamed to ILogger. The caller argument is now of type object, which makes the interface usable by any type. This ensures that ProvideAttribute can be used by non-UIComponent types, as long as they have a Logger instance variable which has the correct methods. That behaviour should be refined further before 1.0 release.

… to object

BREAKING CHANGE: The IUIComponentLogger interface has been renamed to ILogger. It's methods' second argument is now of type object rather than UIComponent.
BREAKING CHANGE: UIComponent's GetTypeName method has been removed as it was unnecessary. Use GetType().Name instead.
@jonisavo jonisavo added enhancement New feature or request source-generation This issue or pull request relates to source generation labels Oct 23, 2022
@jonisavo jonisavo added this to the 1.0 milestone Oct 23, 2022
@codecov
Copy link

codecov bot commented Oct 23, 2022

Codecov Report

Merging #74 (4af872d) into main (9ee04f4) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #74   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          467       464    -3     
=========================================
- Hits           467       464    -3     
Flag Coverage Δ
automated 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Assets/UIComponents/Core/DebugLogger.cs 100.00% <100.00%> (ø)
Assets/UIComponents/Core/UIComponent.cs 100.00% <100.00%> (ø)
Assets/UIComponents/Testing/TestBed.cs 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jonisavo jonisavo merged commit 8ad91da into main Oct 23, 2022
@jonisavo jonisavo deleted the feature/refactor-logger branch October 23, 2022 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request source-generation This issue or pull request relates to source generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant