version: 1
disable_existing_loggers: False
formatters:
    simple:
        format: "[%(asctime)-15s] [%(levelname)8s] - %(message)s (%(name)s:%(lineno)s)"

handlers:
    console:
        class: logging.StreamHandler
        level: DEBUG
        formatter: simple
        stream: ext://sys.stdout

    info_file_handler:
        class: logging.FileHandler
        formatter: simple
        level: DEBUG
        filename: info.log

#    error_file_handler:
#        class: logging.handlers.RotatingFileHandler
#        level: ERROR
#        formatter: simple
#        filename: errors.log
#        maxBytes: 10485760 # 10MB
#        backupCount: 20
#        encoding: utf8

loggers:
    milvus_benchmark:
        level: DEBUG
        handlers: [console, info_file_handler]
        propagate: no

root:
    level: DEBUG
    handlers: [console, info_file_handler]
