Skip to content

Commit db2059c

Browse files
committed
Merge pull request #38: Use module __name__ variable for logger name
2 parents b826448 + 59db146 commit db2059c

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)