Skip to main content
Module

x/live/deps.ts>DiagConsoleLogger

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
class DiagConsoleLogger
implements DiagLogger
import { DiagConsoleLogger } from "https://deno.land/x/live@1.48.5/deps.ts";

A simple Immutable Console based diagnostic logger which will output any messages to the Console. If you want to limit the amount of logging to a specific level or lower use the createLogLevelDiagLogger

Constructors

new
DiagConsoleLogger()

Properties

debug: DiagLogFunction

Log a general debug message that can be useful for identifying a failure. Information logged at this level may include diagnostic details that would help identify a failure scenario. Useful scenarios would be to log the execution order of async operations

error: DiagLogFunction

Log an error scenario that was not expected and caused the requested operation to fail.

info: DiagLogFunction

Log a general informational message, this should not affect functionality. This is also the default logging level so this should NOT be used for logging debugging level information.

verbose: DiagLogFunction

Log a detailed (verbose) trace level logging that can be used to identify failures where debug level logging would be insufficient, this level of tracing can include input and output parameters and as such may include PII information passing through the API. As such it is recommended that this level of tracing should not be enabled in a production environment.

warn: DiagLogFunction

Log a warning scenario to inform the developer of an issues that should be investigated. The requested operation may or may not have succeeded or completed.