Skip to content

Removes redundant print method. - #2

Open
PopTo wants to merge 1 commit into
baquaz:masterfrom
Melon-IT:develop
Open

PopTo wants to merge 1 commit into
baquaz:masterfrom
Melon-IT:develop

Conversation

@PopTo

@PopTo PopTo commented Oct 2, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@baquaz baquaz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This separation has been made for two reasons:

  • first method func print(tag: DefaultLogType = .debug, ...)
    was intended to use minimum code to put a log, so calling for different tag cases looks like:
Applog.print(tag: .error, ...)
  • second method printCustom(tag: (any LogType)? = nil, ...)
    is universal, so tag can be any type and calling it requires providing explicit tag like:
Applog.printCustom(tag: MyLogType.info, ...)

@PopTo

PopTo commented Oct 2, 2024

Copy link
Copy Markdown
Contributor Author

I have an idea in mind.

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.

2 participants