Skip to main content

@log-right/base

base package​

Classes​

ClassDescription
ConfigurationManagerBaseA static class used to manage the log-right configuration data
ResultBaseA class used to handle the result of a function call or sub-process. Functions/process should return back this object so that the calling function can evaluate it's success.

Interfaces​

InterfaceDescription
Event_2Data used to identify a specific system event
EventConfigConfiguration parameters to be applied to a specific event type
FormattedDataThe base interface definition for FormattedData, the data generated on the Report instance when the format method is ran
IndexableA default dictionary type that can be indexed via a string
IResultThe base interface definition for the Result class
ReportThe base interface definition for Report
ReportConfigBaseReport configuration parameters to be applied to a specific event type
ResultConfigBaseResult object configuration parameters to be applied to a specific event type
TypedIndexableA default dictionary type that can be indexed via a string and containing specific values
UserConfigConfiguration data that is specific to the current, active user

Variables​

VariableDescription
captureStringToConsoleA method to write message directly to the console
captureToConsoleA method to capture Report events directly to the console
DefaultEventTypes
DefaultLogEventConfigBase
DefaultLogRightConfigBase
DefaultUserConfigBaseConfiguration data that is specific to the current, active user
formatBaseA helper function that will handle converting the Result objects returned from a failed process into a Report
getConfigAn internal function used by the ConfigurationManager to get the configuration object
isErrorObjectA type-check function to verify if the passed in field is an Error object
isResultBaseA type-check function to verify if the passed in field is a Result object
setConfigAn internal function used by the ConfigurationManager to get the configuration object
SeverityTypesThe potential values of the severity field. Higher values indicate a more damaging event. If the severity is NONE (or 0), the condition will never be be met. If the severity is CRITICAL (or 99), the condition will always be be met.

Type Aliases​

Type AliasDescription
CallbackFunctionThe function definition for any implementations of callback. This function is user-defined, and will be called when a specified result is called.
CaptureFunctionBaseThe function definition for any implementations of capture. Custom user-defined methods should be sure to align with this.
DefaultEventTypeThe event types provided by default by log-right
EventType
FormatFunctionBaseThe function definition for any implementations of format. Custom user-defined methods should be sure to align with this.
LogEventConfigBaseA type to represent a full log event sequence: - 1. A Result is returned from a function or process - 2. The Result is used to create (or format) a Report - 3. The Report is captured to help identify an issue or a more general event
LogRightConfigBaseSpecifications for the base level of configuration parameters log-right accepts
ResultBaseParamsParameters that can be passed into the ResultBase class's constructor to initialize an object
SeverityThe potential values of the severity field. Higher values indicate a more damaging event. If the severity is NONE (or 0), the condition will never be be met. If the severity is CRITICAL (or 99), the condition will always be be met.