Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions OMPython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,9 @@
CONDITIONS OF OSMC-PL.
"""

import logging

from OMPython.OMCSession import OMCSessionBase, OMCSessionZMQ
from OMPython.ModelicaSystem import ModelicaSystem, ModelicaSystemError, LinearizationResult

# Logger Defined
logger = logging.getLogger('OMPython')
logger.setLevel(logging.DEBUG)
# create console handler with a higher log level
logger_console_handler = logging.StreamHandler()
logger_console_handler.setLevel(logging.INFO)

# create formatter and add it to the handlers
logger_formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger_console_handler.setFormatter(logger_formatter)

# add the handlers to the logger
logger.addHandler(logger_console_handler)
logger.setLevel(logging.WARNING)


# global names imported if import 'from OMPython import *' is used
__all__ = [
'ModelicaSystem',
Expand Down
Loading