logs_model.ts 473 B

1234567891011121314151617181920212223242526272829
  1. export enum LogLevel {
  2. crit = 'crit',
  3. warn = 'warn',
  4. err = 'error',
  5. error = 'error',
  6. info = 'info',
  7. debug = 'debug',
  8. trace = 'trace',
  9. }
  10. export interface LogSearchMatch {
  11. start: number;
  12. length: number;
  13. text?: string;
  14. }
  15. export interface LogRow {
  16. key: string;
  17. entry: string;
  18. logLevel: LogLevel;
  19. timestamp: string;
  20. timeFromNow: string;
  21. timeLocal: string;
  22. searchMatches?: LogSearchMatch[];
  23. }
  24. export interface LogsModel {
  25. rows: LogRow[];
  26. }