lib/index.js
function stdout(messageType) {
        return (...args) => {
            const options = getOptions(messageType);
            let message = parse(messageType, args);
            /** Add trace to console.trace */
            if (messageType === "trace") {
                message += `\n${getTrace()}`;
            }
            /** Stdout to console */
            if (!options.fileOnly) {
                _console.log(message);
            }
            /** Stdout to file */
            if (typeof options.filePath === "string" && options.filePath.length > 0) {
                fs.appendFileSync(options.filePath, `${message}\n`);
            }
        };
    }
function stdout(messageType) {
        return (...args) => {
            const options = getOptions(messageType);
            let message = parse(messageType, args);
            /** Add trace to console.trace */
            if (messageType === "trace") {
                message += `\n${getTrace()}`;
            }
            /** Stdout to console */
            if (!options.fileOnly) {
                _console.log(message);
            }
            /** Stdout to file */
            if (typeof options.filePath === "string" && options.filePath.length > 0) {
                fs.appendFileSync(options.filePath, `${message}\n`);
            }
        };
    }
Main stdout function
@param {string} messageType
@returns {IStdout}