Creates a new logger
Closes the logger and its attachment to the log file
Writes error to stderr
Writes a fatal error to stderr and quits the application with status -1
Write info log to stdout
Write warning log to stdout
Whether to write logs to file
A logger