utils/Logger.js
function (data) {

            if (!isLog()) {
                return undefined;
            }

            try {
                _fs.appendFileSync("pkgscript.log", (_utils.now() + "  " + data + "\n"), "utf8");

            } catch (e) {
                console.error(_utils.now + " [package-script] Package Script, ERROR:", e);
            }
        }
function (data) {

            if (!isLog()) {
                return undefined;
            }

            try {
                _fs.appendFileSync("pkgscript.log", (_utils.now() + "  " + data + "\n"), "utf8");

            } catch (e) {
                console.error(_utils.now + " [package-script] Package Script, ERROR:", e);
            }
        }
function ( data ) { if ( ! isLog ( ) ) { return undefined ; } try { _fs . appendFileSync ( "pkgscript.log" , ( _utils . now ( ) + "  " + data + "\n" ) , "utf8" ) ; } catch ( e ) { console . error ( _utils . now + " [package-script] Package Script, ERROR:" , e ) ; } }
Print the given data to a file

@param data The data to be write
Print the given data to a file