# HG changeset patch # User Olivier Delalleau # Date 1314026928 14400 # Node ID 93b8373c6735039a5b8299c6e0d0c0985a141c76 # Parent 625fe86e3d5ece472e5f40321b06faf009948418 Prefix loggers with 'pylearn.' to ensure there is no conflict when using Pylearn code within another library diff -r 625fe86e3d5e -r 93b8373c6735 pylearn/algorithms/sparse_coding.py --- 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() diff -r 625fe86e3d5e -r 93b8373c6735 pylearn/dataset_ops/__init__.py --- a/pylearn/dataset_ops/__init__.py Wed Aug 17 10:18:59 2011 -0400 +++ b/pylearn/dataset_ops/__init__.py Mon Aug 22 11:28:48 2011 -0400 @@ -1,4 +1,4 @@ import logging -logging.getLogger('dataset_ops').setLevel(logging.INFO) +logging.getLogger('pylearn.dataset_ops').setLevel(logging.INFO) from protocol import Dataset, TensorDataset, TensorFnDataset # protocol.py diff -r 625fe86e3d5e -r 93b8373c6735 pylearn/shared/layers/util.py --- a/pylearn/shared/layers/util.py Wed Aug 17 10:18:59 2011 -0400 +++ b/pylearn/shared/layers/util.py Mon Aug 22 11:28:48 2011 -0400 @@ -27,7 +27,7 @@ """ if name is None: - name = "layers.%s" % cls.__name__ + name = "pylearn.shared.layers.%s" % cls.__name__ cls._logger = logging.getLogger(name) if level: try: