yiheng tang created FLINK-35908:
-----------------------------------

             Summary:  Flink log can not output method name and line number.
                 Key: FLINK-35908
                 URL: https://issues.apache.org/jira/browse/FLINK-35908
             Project: Flink
          Issue Type: Bug
            Reporter: yiheng tang


log4j.properties:
{code}
appender.main.name = MainAppender
appender.main.type = RollingFile
appender.main.append = false
appender.main.fileName = ${sys:log.file}
appender.main.filePattern = ${sys:log.file}.%i
appender.main.layout.type = PatternLayout
appender.main.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c{1} 
(%M:%L) - %m%n
appender.main.policies.type = Policies
appender.main.policies.size.type = SizeBasedTriggeringPolicy
appender.main.policies.size.size = 100MB
appender.main.strategy.type = DefaultRolloverStrategy
appender.main.strategy.max = 5
{code}
But flink jobmanager log output as follows:
{code:java}
2024-07-28 22:00:12,489 [flink-akka.actor.default-dispatcher-3] INFO  
ExecutionGraph (:) - Source_Custom_Source -> Flat_Map(9/16) - execution #0 
(afde77b9b3ac94a2ffab46e5f96dc14c) switched from RECOVERING to RUNNING.
2024-07-28 22:00:12,489 [flink-akka.actor.default-dispatcher-21] INFO  
ExecutionGraph (:) - Source_Custom_Source -> Flat_Map(13/16) - execution #0 
(e0e7ce36f7d40372b71f956f7c19dbd3) switched from RECOVERING to RUNNING.
2024-07-28 22:00:12,524 [flink-akka.actor.default-dispatcher-21] INFO  
ExecutionGraph (:) - Window_TumblingProce -> Map -> (Sink_Print_to_Std_Ou, 
Sink_Unnamed)(15/16) - execution #0 (dc904d83c235247271caa2c8ef7be1ed) switched 
from RECOVERING to RUNNING.
{code}
Flink logs do not output the method name and line number.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to