UNPKG

@archon-inc/sdk

Version:

Integrate easily to our government platform using this SDK. More info on https://archon.inc/sdk

58 lines (57 loc) 1.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Severity = exports.Outcome = void 0; /** * The outcome of a log event. Should always be populated. */ var Outcome; (function (Outcome) { /** * The event is unfolding at the time that you create the log entry. */ Outcome["IN_PROGRESS"] = "IN_PROGRESS"; /** * The event has completed successfully. */ Outcome["SUCCESS"] = "SUCCESS"; /** * The event has completed unsuccessfully. */ Outcome["FAILURE"] = "FAILURE"; /** * The event has completed. For events that don't fit into SUCCESS or FAILURE. */ Outcome["COMPLETED"] = "COMPLETED"; })(Outcome || (exports.Outcome = Outcome = {})); /** * The severity of the event that you're logging */ var Severity; (function (Severity) { /** * Only interesting to developers. Causes no disruption and represents no deviation. */ Severity[Severity["DEBUG"] = 0] = "DEBUG"; /** * Informational messages that highlight the progress of the application at coarse-grained level. */ Severity[Severity["INFO"] = 1] = "INFO"; /** * Normal but significant events. (i.e. user accesses a privileged location) */ Severity[Severity["NOTICE"] = 2] = "NOTICE"; /** * Exceptional occurrences that are not errors. (i.e. user attempts to access a privileged location but is denied) */ Severity[Severity["WARNING"] = 3] = "WARNING"; /** * Occurrences that do not require immediate action but should typically be logged and monitored. * Will flag for human review but not immediate action. */ Severity[Severity["ERROR"] = 4] = "ERROR"; /** * Critical conditions. (i.e. application component unavailable) * Will page a human to address the issue. */ Severity[Severity["CRITICAL"] = 5] = "CRITICAL"; })(Severity || (exports.Severity = Severity = {}));