# Allows this configuration to be modified at runtime. The file will be checked every 30 seconds.
monitorInterval=30

# This affects logging for both user code and Flink
rootLogger.level = ERROR
#rootLogger.appenderRef.file.ref = MainAppender, stdout
rootLogger.appenderRef.$1.ref = MainAppender
rootLogger.appenderRef.$2.ref = stdout

#https://logging.apache.org/log4j/2.x/manual/configuration.html#configuration-with-properties
#define all logger begin with com.bcxin.flink will with level=info
logger.app.level = INFO
logger.app.name = com.bcxin.flink
# Uncomment this if you want to _only_ change Flink's logging
#logger.flink.name = org.apache.flink
#logger.flink.level = INFO

# The following lines keep the log level of common libraries/connectors on
# log level INFO. The root logger does not override this. You have to manually
# change the log levels here.
# Log all infos in the given file
appender.main.name = MainAppender
appender.main.type = RollingFile
appender.main.append = true
appender.main.fileName = log.file
appender.main.filePattern = log.file.%i
appender.main.layout.type = PatternLayout
appender.main.layout.pattern = V2-%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n
appender.main.policies.type = Policies
appender.main.policies.size.type = SizeBasedTriggeringPolicy
appender.main.policies.size.size = 100MB
appender.main.policies.startup.type = OnStartupTriggeringPolicy
appender.main.strategy.type = DefaultRolloverStrategy
appender.main.strategy.max = ${env:MAX_LOG_FILE_NUMBER:-10}

appender.console.type = Console
appender.console.name = stdout