# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you 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.

python {
    # python3 executable path
    path = ""
    path = ${?UDF_PYTHON_PATH}

    log {
        streamHandler {
            # handler output level
            level="INFO"
            level = ${?UDF_PYTHON_LOG_STREAMHANDLER_LEVEL}
            # handler log format
            format= "<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>"
            format = ${?UDF_PYTHON_LOG_STREAMHANDLER_FORMAT}
        }

        fileHandler {
            # log directory
            dir= "/tmp/"
            dir = ${?UDF_PYTHON_LOG_FILEHANDLER_DIR}
            # handler output level
            level= "INFO"
            level = ${?UDF_PYTHON_LOG_FILEHANDLER_LEVEL}
            # handler log format
            format= "<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>"
            format = ${?UDF_PYTHON_LOG_FILEHANDLER_FORMAT}
        }
    }
}

r {
    # Path to your R home here (if you want to use R-UDF)
    path = ""
    path = ${?UDF_R_PATH}
}
