Another logger in JS. This one offers a console.log-like API and formatting, colored lines and timestamps (or not if desired), all that with 0 dependencies.

Commit 22b48856

22b488562c61Merged

Maxence Lecanu <[email protected]> · 1 year ago · 1 file · ~1 modified

Description

fix: expose success method in hellog object

Details

Commit
22b488562c61
Parent
0c3a0cc6a360

lib/hellog.tsmodifiedView file

@@ -145,6 +145,14 @@
145145 }
146146
147147 /**
148+ * Log a message at the success level.
149+ * @param data The data to log.
150+ */
151+ success(...data: unknown[]): void {
152+ this._log(data, HellogLevel.SUCCESS);
153+ }
154+
155+ /**
148156 * Log a message at the warn level.
149157 * @param data The data to log.
150158 */