Options
All
  • Public
  • Public/Protected
  • All
Menu

The class Log is the base class for the concrete types ErrorLog, WarningLog and InfoLog. It is one of the two Context's structuring entities (the other one being a child Context).

Log objects are central in Flux for the reporting mechanism (the same way Context are). In particular, one interesting feature related to log & reporting is the possibility for the developer of modules to register custom view factories associated to some data types. Doing so allows to include in the Flux journals adapted and interactive views to help the builder of Flux applications to better understand the data transformation flow during a processing. Examples include interactive 3D visualization, on the fly reporting of convergence results in 2D graphs, etc. The registration of the factories is handled by the class Journal.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Log(context: Context, text: string, data?: unknown): Log

Properties

Readonly context

context: Context

Optional Readonly data

data: unknown

Readonly id

id: string = ...

uuid

Readonly text

text: string

Readonly timestamp

timestamp: number = ...

timestamp corresponding to the instance construction

Methods

elapsed

  • elapsed(from: any): number

Generated using TypeDoc