File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
// ==============================================================================
19
19
20
- #include < xrpl/logging/JsonLogs.h>
20
+ #include < xrpl/telemetry/JsonLogs.h>
21
+ #include < xrpl/json/to_string.h>
22
+
21
23
namespace ripple {
22
24
namespace log {
23
25
@@ -100,14 +102,14 @@ JsonStructuredJournal::Logger::write(
100
102
threadIdStream << std::this_thread::get_id ();
101
103
globalContext[" ThreadId" ] = threadIdStream.str ();
102
104
globalContext[" Params" ] = messageParams;
103
- globalContext[" Level" ] = Logs::toString ( Logs::fromSeverity (level) );
105
+ globalContext[" Level" ] = beast::severities::to_string (level);
104
106
globalContext[" Message" ] = text;
105
107
globalContext[" Time" ] =
106
108
to_string (std::chrono::duration_cast<std::chrono::milliseconds>(
107
109
std::chrono::system_clock::now ().time_since_epoch ())
108
110
.count ());
109
111
110
- sink->write (level, Json::jsonAsString (globalContext));
112
+ sink->write (level, to_string (globalContext));
111
113
}
112
114
113
115
JsonStructuredJournal::Logger
You can’t perform that action at this time.
0 commit comments