[java_log] add another java_log regex

master
Tim Stack 3 weeks ago
parent 4ad451b27d
commit e1a1e7099b

@ -53,7 +53,20 @@ service_base::run()
mstime_t current_time = getmstime();
auto timeout = this->compute_timeout(current_time);
this->s_port.process_for(timeout);
try {
this->s_port.process_for(timeout);
} catch (const std::exception& e) {
log_error("%s: message failed with -- %s",
this->s_name.c_str(),
e.what());
this->s_looping = false;
continue;
} catch (...) {
log_error("%s: message failed with non-standard exception",
this->s_name.c_str());
this->s_looping = false;
continue;
}
this->s_children.cleanup_children();
try {

@ -37,6 +37,9 @@
},
"vmw-sps": {
"pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}( |T)\\d{2}:\\d{2}:\\d{2}(,|\\.)\\d{3}(?:Z|[-+]\\d{2}:?\\d{2})?)\\s+\\[(?<thread>[^\\]]+)\\]\\s+(?<level>ERROR|WARN|INFO|DEBUG|TRACE)\\s+opId=(?<opid>\\S*)\\s+(?<class>\\S+)\\s+-\\s+(?<body>.*)$"
},
"level-thread-class": {
"pattern": "(?<timestamp>\\d{4}-\\d{2}-\\d{2}[ T]\\d{2}:\\d{2}:\\d{2}[,\\.]\\d{3}) (?<level>\\w+)\\s+\\[(?<thread>[^\\]]+)\\] (?<class>[^:]+): (?<body>.*)"
}
},
"level-field": "level",
@ -160,6 +163,9 @@
},
{
"line": "2023-07-19T03:05:51.879Z invocation-vmomi-executor-1 operationID=4e543097-1a DEBUG vim.vmomi.server.impl.InvocationTask Invoking com.vmware.vim.binding.vim.LicenseManager.getEvaluation"
},
{
"line": "2024-04-23 09:17:27,871 INFO [main] server.Server: jetty-9.4.50.v20221201; built: 2022-12-01T22:07:03.915Z; git: da9a0b30691a45daf90a9f17b5defa2f1434f882; jvm 11.0.21+9-LTS"
}
]
}

@ -296,7 +296,7 @@ public:
template<typename F>
auto map_top_row(F func) const ->
typename std::result_of<F(const attr_line_t&)>::type
typename std::invoke_result<F, const attr_line_t&>::type
{
if (this->lv_top >= this->get_inner_height()) {
return std::nullopt;

Loading…
Cancel
Save