void set_level(int level)
by default, we start with full logging. use this method to modify the log level.