XCGLogger - How to set the Log Levels for All Logs

271 Views Asked by At

I am using XCGLogger in my project, how to set the log level for all. I want to log all the logs like (debug, info,error,severe,verbose etc.,), for this how can i set the log level.

1

There are 1 best solutions below

2
On

Set the level to .verbose.

XCGLogger will only print messages with a log level that is greater to or equal to it's current log level setting. So a logger with a level of .error will only output log messages with a level of .error, or .severe. And so, a logger with a level of .verbose will show all log messages.