swaf/dist/models/Log.d.ts

22 lines
617 B
TypeScript
Raw Normal View History

2020-04-22 15:52:17 +02:00
/// <reference types="node" />
import Model from "../db/Model";
import { LogLevelKeys } from "../Logger";
export default class Log extends Model {
private level?;
message?: string;
private log_id?;
private error_name?;
private error_message?;
private error_stack?;
private created_at?;
protected defineProperties(): void;
getLevel(): LogLevelKeys;
setLevel(level: LogLevelKeys): void;
getLogID(): string | null;
setLogID(buffer: Buffer): void;
getErrorName(): string;
getErrorMessage(): string;
getErrorStack(): string;
setError(error?: Error): void;
}