# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import logging.config
import os.path

from bndl.util.conf import Config, String
from bndl.util.log import install_trace_logging
from bndl.util.objects import LazyObject


# Expose a global BNDL configuration
conf = LazyObject(Config)


# Configure Logging

logging_conf = String('logging.conf')

install_trace_logging()
logging.captureWarnings(True)

if os.path.exists(conf['bndl.logging_conf']):
    logging.config.fileConfig(conf['bndl.logging_conf'], disable_existing_loggers=False)


# BNDL version info

__version_info__ = (0, 6, 0)
__version__ = '.'.join(map(str, __version_info__))

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import logging.config
import os.path

from bndl.util.conf import Config, String
from bndl.util.log import install_trace_logging
from bndl.util.objects import LazyObject


# Expose a global BNDL configuration
conf = LazyObject(Config)


# Configure Logging

logging_conf = String('logging.conf')

install_trace_logging()
logging.captureWarnings(True)

if os.path.exists(conf['bndl.logging_conf']):
    logging.config.fileConfig(conf['bndl.logging_conf'], disable_existing_loggers=False)


# BNDL version info

__version_info__ = (0, 7, 0, 'dev2')
__version__ = '.'.join(map(str, __version_info__))

bump dev version