Index

lognestmonster / c1f639d

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
3425 Dec 2018 23:564397a13Update statement.jsJoshua111N

Blob @ lognestmonster / src / statement.js

application/javascript380 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 message == "string") ? message : "";
7 return this;
8 }
9}
10
11module.exports = Statement;
12