Log
Log stores tabular (array-of-array) data in JS memory on the browser, but streams it to disk using fs.writeSync() in nodejs server apps. .last is used to cache the last log row As a kind of limited guarantee of history on both platforms
Constructor Summary
Public Constructor | ||
public |
constructor(fname: string) Create Log with suggested file name in browser memory or on-disk in nodejs |
Member Summary
Public Members | ||
public |
data array for browser and test usage |
|
public |
log file descriptor from open call |
|
public |
header array for Log, as set by setHeader(header) |
|
public |
last item written to log |
|
public |
if true, uses nodejs fs calls |
Method Summary
Public Methods | ||
public |
last value for some column recorded in Log |
|
public |
sets header row and writes it to Log for csv-style Log. |
|
public |
writes data to Log and sets .last |
Public Constructors
Public Members
Public Methods
public lastByKey(k: *): number | string | undefined source
last value for some column recorded in Log
Params:
Name | Type | Attribute | Description |
k | * |