Skip to content

Instantly share code, notes, and snippets.

@omalley
Created May 20, 2020 03:19
Show Gist options
  • Save omalley/745ed04be3e22a3077ca51c5da8ebf1b to your computer and use it in GitHub Desktop.
Save omalley/745ed04be3e22a3077ca51c5da8ebf1b to your computer and use it in GitHub Desktop.
enum LogLevel {
TRACE, DEBUG, INFO, WARN, ERROR, FATAL
}
record LogLocation {
union{null, string} className;
union{null, string} fileName;
union{null, long} lineNumber;
union{null, string} methodName;
}
record LogEvent {
LogLevel level;
long time;
string loggerName;
string Message;
union{null, string} threadName;
union{null, LogLocation} location;
union{null, string} throwable;
union{null, map<string>} mappedDiagnosticContext;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment