Skip to content

Removes redundant print method.#2

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

Removes redundant print method.#2
PopTo wants to merge 1 commit intobaquaz:masterfrom
Melon-IT:develop

Conversation

@PopTo
Copy link
Copy Markdown
Contributor

@PopTo PopTo commented Oct 2, 2024

No description provided.

Copy link
Copy Markdown
Owner

@baquaz baquaz left a comment

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
Copy link
Copy Markdown
Contributor Author

PopTo commented Oct 2, 2024

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