Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/node-red/node_modules/grunt-legacy-log/ drwxr-xr-x | |
| Viewing file: Select action/file-type: var Log = require('./').Log;
function doThings(options) {
console.log();
console.log(options);
var log = new Log(options);
log.header("Header line.");
log.subhead("Subhead line.");
log.write("Testing").write(" 123...").writeln("done!");
log.write("Verbose: ").verbose.write("YES").or.write("NO").always.write(", ");
log.notverbose.write("NO").or.write("YES").always.writeln("!");
log.warn("This is a warning.");
log.write("Doing something...").warn();
log.error("This is an error.");
log.write("Doing something...").error();
log.ok("This is ok.");
log.write("Doing something...").ok();
log.errorlns("This is a very long line in errorlns that should wrap eventually, given that it is a very long line.");
log.oklns("This is a very long line in oklns that should wrap eventually, given that it is a very long line.");
log.success("This is a success message.");
log.fail("This is a fail message.");
log.debug("This is a debug message.");
}
doThings({});
doThings({verbose: true});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0066 ]-- |