## Create 3 functions inside `Logger` class:- 1) info() Takes in a string argument `message` and prints string in below format:- [INFO] message 2) warn() Takes in a string argument `message` and prints string in below format:- [WARNING] message 3) error() Takes in a string argument `message` and prints string in below format:- [ERROR] message For eg:- <br> Code ``` Logger log; log.info("Some information"); log.warn("Some warning"); log.error("Some error"); ``` Expected Output: ``` [INFO] Some information [WARNING] Some warning [ERROR] Some error ```
Create 3 functions inside
Loggerclass:-Takes in a string argument
messageand prints string in below format:-[INFO] message
Takes in a string argument
messageand prints string in below format:-[WARNING] message
Takes in a string argument
messageand prints string in below format:-[ERROR] message
For eg:-
Code
Expected Output: