Thanks for reply! Nice suggestion.
Yes you can do that and it will work.

I agree that this is easier and faster to do but this is also a bit more dangerous. You need to really well documentate that you are changing the behaviour of the default println statement. The person who will take this project over could be very surprised that println is suddenly not working.

I’ve used Swell and I personaly like that you need to use Swell prefix for logging, Swell.info(“hi”). The other thing is that SpeedLog has some extra functionality for log formatting.

If all you want is really quickly to disable logs, use your solution, if fits perfect for that purpose.
If you want to have nice log but you don’t want to use SpeedLog prefix everywhere you can also override global prinln functions to use SpeedLog

func println(object: Any) {
SpeedLog.println(object)
}
func print(object: Any) {
SpeedLog.print(object)
}