A general-purpose single-header C logging library and parser for event-based logs. (Incomplete)
{#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
---|---|---|---|---|---|---|---|---|
34 | 25 Dec 2018 23:56 | 4397a13 | Update statement.js | Joshua | 1 | 1 | 1 | N |
1 | class 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 | |
11 | module.exports = Statement; |
12 |