Skip to content

LogType

Egor Badmaev edited this page Dec 5, 2022 · 4 revisions

LogType

Enumeration that represents different types of logs. It has 3 cases:

Cases

Info

The informative log level.

case info = "ℹ️ INFO"

Warning

The warning log level.

case warning = "⚠️ WARNING"

Error

The error log level.

case error = "❗️ERROR"

Usage

This enumeration is being used in another enumeration Logger:

  • Method log: to define what log level to print
  • Method createLog: to print its' rawValue
Clone this wiki locally