“Could not get Timeline data” when using Timeline Visualization with Comma IDE

瘦欲@ 提交于 2019-12-12 17:14:35

问题


After implementing the answer to this question on how to set up a script for time visualization in this project (which uses a small extension to the published Log::Timeline that allows me to set the logging file from the program itself), I still get the same error

12:18   Timeline connection error: Could not get timeline data: java.net.ConnectException: Conexión rehusada

(which means refused connection). I've also checked the created files, and they are empty, they don't receive anything. I'm using this to log:

class Events does Log::Timeline::Event['ConcurrentEA', 'App', 'Log'] { }

(as per the README.md file). It's probably the case that there's no such thing as a default implementation, as shown in the tests, but, in that case, what would be the correct way of making it print to the file and also connect to the timeline visualizer?


回答1:


If you want to use the timeline visualization, leave the defaults for logging, commenting out any modification of the standard logging output. In my case:

#BEGIN {
#    PROCESS::<$LOG-TIMELINE-OUTPUT>
#           = Log::Timeline::Output::JSONLines.new(
#               path => log-file
#            )
#}

Not really sure if this would have happened if an output file is defined using an environment variable, but in any case, better to be on the safe side. You can use the output file when you eventually drop the script into production.



来源:https://stackoverflow.com/questions/58521249/could-not-get-timeline-data-when-using-timeline-visualization-with-comma-ide

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!