Mercurial > pylearn
diff pylearn/algorithms/sparse_coding.py @ 1496:93b8373c6735
Prefix loggers with 'pylearn.' to ensure there is no conflict when using Pylearn code within another library
author | Olivier Delalleau <delallea@iro> |
---|---|
date | Mon, 22 Aug 2011 11:28:48 -0400 |
parents | e88d7b7d53ed |
children |
line wrap: on
line diff
--- a/pylearn/algorithms/sparse_coding.py Wed Aug 17 10:18:59 2011 -0400 +++ b/pylearn/algorithms/sparse_coding.py Mon Aug 22 11:28:48 2011 -0400 @@ -152,8 +152,8 @@ if __name__ == '__main__': logging.basicConfig(stream=sys.stderr) - logging.getLogger('main').setLevel(logging.INFO) - logging.getLogger('main').info('hello') + logging.getLogger('pylearn.algorithms.sparse_coding.main').setLevel(logging.INFO) + logging.getLogger('pylearn.algorithms.sparse_coding.main').info('hello') # load olshausen images reproduce_olshausen()