-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Open
Labels
Description
By default writing to a logger would not go to STDOUT without a handler. One solution to this is to attach a handler when verbose is an integer and use the logger if it is passed in.
# Do not log
func(verbose=0)
# will create a stream handler to stdout
func(verbose=1)
# will write to the logger passed in
func(verbose=logger)Edit: See also #78.
lucylow