# Copyright (C) 2016 Antoine Carme <Antoine.Carme@Laposte.net>
# All rights reserved.

# This file is part of the Python Automatic Forecasting (PyAF) library and is made available under
# the terms of the 3 Clause BSD license

import sys, os

def createDirIfNeeded(dirname):
    try:
        os.mkdir(dirname);
    except:
        pass



class ForecastError(Exception):
    """Exception raised for errors in the forecasting process.

    Attributes:
        mReason : explanation of the error
    """

    def __init__(self, reason):
        self.mReason = reason

class InternalForecastError(Exception):
    """Exception raised for errors in the forecasting process.

    Attributes:
        mReason : explanation of the error
    """

    def __init__(self, reason):
        self.mReason = reason


@@ -774,28 +774,261 @@
      self.mReason = reason%0A%0A
+%0A%0Adef get_pyaf_logger():%0A    import logging;%0A    logger = logging.getLogger('pyaf');%0A    return logger;%0A%0Adef get_pyaf_hierarchical_logger():%0A    import logging;%0A    logger = logging.getLogger('pyaf.hierarchical');%0A    return logger;%0A

Use Python Logging #10 Added two loggers : one for generic modeling and one for hierarchical.