Index

lognestmonster / 9e7f4df

A general-purpose single-header C logging library and parser for event-based logs. (Incomplete)

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
1625 Dec 2018 21:1423d6cc0Update statement.jsJoshua1414N

Blob @ lognestmonster / src / statement.js

application/javascript382 bytesdownload raw
1class Statement {
2 constructor(verbosity, tag, message) {
3 this.timestamp = new Date();
4 this.verbosity = (verbosity != null && typeof verbosity == "string") ? verbosity : "INFO";
5 this.tag = (tag != null && typeof tag == "string") ? tag : "TAG";
6 this.message = (message != null && typeof verbosity == "string") ? message : "";
7 return this;
8 }
9}
10
11module.exports = Statement;
12