Skip to content

Commit 59db146

Browse files
authored
Use module __name__ variable for logger name
1 parent baacedb commit 59db146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Here's an example of how easy it is to get started:
7979
import coloredlogs, logging
8080
8181
# Create a logger object.
82-
logger = logging.getLogger('your-module')
82+
logger = logging.getLogger(__name__)
8383
8484
# By default the install() function installs a handler on the root logger,
8585
# this means that log messages from your code and log messages from the

0 commit comments

Comments
 (0)