@@ -4,24 +4,25 @@ Handles Module types for now, more can be added later.
44"""
55struct LogEntrySerialization <: CommonSerialization end
66
7- show_json (io:: StructuralContext , :: LogEntrySerialization , m:: Module ) = show_json (io, LogEntrySerialization (), string (m))
8- show_json (io:: StructuralContext , :: LogEntrySerialization , ptr:: Ptr ) = show_json (io, LogEntrySerialization (), string (ptr))
9- show_json (io:: StructuralContext , :: LogEntrySerialization , sv:: Core.SimpleVector ) = show_json (io, LogEntrySerialization (), [sv... ])
10- show_json (io:: StructuralContext , :: LogEntrySerialization , typ:: DataType ) = show_json (io, LogEntrySerialization (), string (typ))
7+ show_json (io:: StructuralContext , ser:: LogEntrySerialization , m:: Function ) = show_json (io, ser, string (m))
8+ show_json (io:: StructuralContext , ser:: LogEntrySerialization , m:: Module ) = show_json (io, ser, string (m))
9+ show_json (io:: StructuralContext , ser:: LogEntrySerialization , ptr:: Ptr ) = show_json (io, ser, string (ptr))
10+ show_json (io:: StructuralContext , ser:: LogEntrySerialization , sv:: Core.SimpleVector ) = show_json (io, ser, [sv... ])
11+ show_json (io:: StructuralContext , ser:: LogEntrySerialization , typ:: DataType ) = show_json (io, ser, string (typ))
1112
12- function show_json (io:: StructuralContext , :: LogEntrySerialization , level:: Logging.LogLevel )
13+ function show_json (io:: StructuralContext , ser :: LogEntrySerialization , level:: Logging.LogLevel )
1314 levelstr = (level == Logging. Debug) ? " Debug" :
1415 (level == Logging. Info) ? " Info" :
1516 (level == Logging. Warn) ? " Warn" :
1617 (level == Logging. Error) ? " Error" :
1718 " LogLevel($(level. level) )"
18- show_json (io, LogEntrySerialization () , levelstr)
19+ show_json (io, ser , levelstr)
1920end
2021
21- function show_json (io:: StructuralContext , :: LogEntrySerialization , exception:: Tuple{Exception,Any} )
22+ function show_json (io:: StructuralContext , ser :: LogEntrySerialization , exception:: Tuple{Exception,Any} )
2223 iob = IOBuffer ()
2324 Base. show_exception_stack (iob, [exception])
24- show_json (io, LogEntrySerialization () , String (take! (iob)))
25+ show_json (io, ser , String (take! (iob)))
2526end
2627
2728as_text (str:: String ) = str
0 commit comments