lighten up beautylog
This commit is contained in:
parent
2c8f5d2c49
commit
79361eefbc
@ -1 +0,0 @@
|
|||||||
{}
|
|
120
code.css
120
code.css
@ -1,120 +0,0 @@
|
|||||||
.hljs {
|
|
||||||
display: block;
|
|
||||||
padding: 0.5em;
|
|
||||||
color: #333;
|
|
||||||
background: #f8f8f8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-comment,
|
|
||||||
.hljs-template_comment,
|
|
||||||
.diff .hljs-header,
|
|
||||||
.hljs-javadoc {
|
|
||||||
color: #998;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-keyword,
|
|
||||||
.css .rule .hljs-keyword,
|
|
||||||
.hljs-winutils,
|
|
||||||
.javascript .hljs-title,
|
|
||||||
.nginx .hljs-title,
|
|
||||||
.hljs-subst,
|
|
||||||
.hljs-request,
|
|
||||||
.hljs-status {
|
|
||||||
color: #333;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-number,
|
|
||||||
.hljs-hexcolor,
|
|
||||||
.ruby .hljs-constant {
|
|
||||||
color: #099;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-string,
|
|
||||||
.hljs-tag .hljs-value,
|
|
||||||
.hljs-phpdoc,
|
|
||||||
.tex .hljs-formula {
|
|
||||||
color: #d14;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-title,
|
|
||||||
.hljs-id,
|
|
||||||
.coffeescript .hljs-params,
|
|
||||||
.scss .hljs-preprocessor {
|
|
||||||
color: #900;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.javascript .hljs-title,
|
|
||||||
.lisp .hljs-title,
|
|
||||||
.clojure .hljs-title,
|
|
||||||
.hljs-subst {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-class .hljs-title,
|
|
||||||
.haskell .hljs-type,
|
|
||||||
.vhdl .hljs-literal,
|
|
||||||
.tex .hljs-command {
|
|
||||||
color: #458;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-tag,
|
|
||||||
.hljs-tag .hljs-title,
|
|
||||||
.hljs-rules .hljs-property,
|
|
||||||
.django .hljs-tag .hljs-keyword {
|
|
||||||
color: #000080;
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-attribute,
|
|
||||||
.hljs-variable,
|
|
||||||
.lisp .hljs-body {
|
|
||||||
color: #008080;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-regexp {
|
|
||||||
color: #009926;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-symbol,
|
|
||||||
.ruby .hljs-symbol .hljs-string,
|
|
||||||
.lisp .hljs-keyword,
|
|
||||||
.tex .hljs-special,
|
|
||||||
.hljs-prompt {
|
|
||||||
color: #990073;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-built_in,
|
|
||||||
.lisp .hljs-title,
|
|
||||||
.clojure .hljs-built_in {
|
|
||||||
color: #0086b3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-preprocessor,
|
|
||||||
.hljs-pragma,
|
|
||||||
.hljs-pi,
|
|
||||||
.hljs-doctype,
|
|
||||||
.hljs-shebang,
|
|
||||||
.hljs-cdata {
|
|
||||||
color: #999;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-deletion {
|
|
||||||
background: #fdd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-addition {
|
|
||||||
background: #dfd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.diff .hljs-change {
|
|
||||||
background: #0086b3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-chunk {
|
|
||||||
color: #aaa;
|
|
||||||
}
|
|
2
dist/beautylog.classes.ora.js
vendored
2
dist/beautylog.classes.ora.js
vendored
@ -48,4 +48,4 @@ class Ora {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||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0FBQTtRQUN0QixJQUFJLENBQUMsVUFBVSxDQUFDLEtBQUssRUFBRSxDQUFBO1FBQ3ZCLGlCQUFTLEdBQUcsU0FBUyxDQUFBO1FBQ3JCLGlCQUFTLEdBQUcsS0FBSyxDQUFBO0lBQ3JCLENBQUM7SUFDRCxLQUFLLENBQUMsT0FBTztRQUNULElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQTtRQUNWLCtCQUFPLENBQUMsSUFBSSxFQUFDLE9BQU8sQ0FBQyxDQUFBO0lBQ3pCLENBQUM7SUFDRCxRQUFRLENBQUMsT0FBTztRQUNaLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQTtRQUNWLCtCQUFPLENBQUMsT0FBTyxFQUFDLE9BQU8sQ0FBQyxDQUFBO0lBQzVCLENBQUM7SUFDRCxLQUFLO1FBQ0QsSUFBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLEVBQUUsQ0FBQTtJQUMxQixDQUFDO0lBQ0QsSUFBSTtRQUNBLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQTtJQUNkLENBQUM7Q0FDSjtBQTNDRCxrQkEyQ0MifQ==
|
4
dist/beautylog.console.js
vendored
4
dist/beautylog.console.js
vendored
@ -7,7 +7,7 @@ let nativeError = console.error;
|
|||||||
* routes the console to got through beautylog, so beautylog can take action before things are logged to console.
|
* routes the console to got through beautylog, so beautylog can take action before things are logged to console.
|
||||||
*/
|
*/
|
||||||
let route = function (statusArg) {
|
let route = function (statusArg) {
|
||||||
if (statusArg == true) {
|
if (statusArg === true) {
|
||||||
console.log = exports.beautyConsole.log;
|
console.log = exports.beautyConsole.log;
|
||||||
console.error = exports.beautyConsole.error;
|
console.error = exports.beautyConsole.error;
|
||||||
}
|
}
|
||||||
@ -38,4 +38,4 @@ exports.beautyConsole = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
route(true);
|
route(true);
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaW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|
||||||
export declare let figlet: (textArg: string, optionsArg?: any) => Q.Promise<{}>;
|
export declare let figlet: (textArg: string, optionsArg?: any) => Promise<{}>;
|
||||||
export declare let figletSync: (textArg: string, optionsArg?: any) => boolean;
|
export declare let figletSync: (textArg: string, optionsArg?: any) => boolean;
|
||||||
|
2
dist/beautylog.figlet.js
vendored
2
dist/beautylog.figlet.js
vendored
@ -36,4 +36,4 @@ exports.figletSync = function (textArg, optionsArg) {
|
|||||||
})[options.color]);
|
})[options.color]);
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLmZpZ2xldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2JlYXV0eWxvZy5maWdsZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBCQUF1QjtBQUN2QiwrQ0FBK0M7QUFDL0MsSUFBSSxjQUFjLEdBQUc7SUFDakIsSUFBSSxFQUFFLFdBQVc7SUFDakIsS0FBSyxFQUFFLE9BQU87SUFDZCxFQUFFLEVBQUUsY0FBWSxDQUFDO0NBQ3BCLENBQUE7QUFFVSxRQUFBLE1BQU0sR0FBRyxVQUFTLE9BQWMsRUFBQyxVQUFXO0lBQ25ELElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUE7SUFDNUIsSUFBSSxZQUFZLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsY0FBYyxDQUFDLENBQUE7SUFDM0QsSUFBSSxPQUFPLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsWUFBWSxFQUFDLFVBQVUsQ0FBQyxDQUFBO0lBQzVELE9BQU8sQ0FBQyxNQUFNLENBQUMsT0FBTyxFQUFDO1FBQ25CLElBQUksRUFBRSxPQUFPLENB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xHQUFHLENBQUMseUJBQXlCLENBQUMsQ0FBQTtZQUN0QyxPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFBO1lBQ2hCLE1BQU0sQ0FBQTtRQUNWLENBQUM7UUFDRCxPQUFPLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQTtRQUNoQyxPQUFPLENBQUMsRUFBRSxFQUFFLENBQUE7UUFDWixJQUFJLENBQUMsT0FBTyxFQUFFLENBQUE7SUFDbEIsQ0FBQyxDQUNKLENBQUE7SUFDRCxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUN2QixDQUFDLENBQUE7QUFFVSxRQUFBLFVBQVUsR0FBRyxVQUFTLE9BQWUsRUFBQyxVQUFXO0lBQ3hELElBQUksWUFBWSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLGNBQWMsQ0FBQyxDQUFBO0lBQzNELElBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLFlBQVksRUFBQyxVQUFVLENBQUMsQ0FBQTtJQUM1RCxPQUFPLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLE9BQU8sRUFBQztRQUN4QyxJQUFJLEVBQUUsT0FBTyxDQUFDLElBQUk7UUFDbEIsZ0JBQWdCLEVBQUUsU0FBUztRQUMzQixjQUFjLEVBQUUsU0FBUztLQUM1QixDQUFDLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUE7SUFDbEIsTUFBTSxDQUFDLElBQUksQ0FBQTtBQUNmLENBQUMsQ0FBQSJ9
|
4
dist/beautylog.log.helpers.js
vendored
4
dist/beautylog.log.helpers.js
vendored
File diff suppressed because one or more lines are too long
4
dist/beautylog.log.js
vendored
4
dist/beautylog.log.js
vendored
@ -66,7 +66,7 @@ exports.newLine = (linesArg = 1) => {
|
|||||||
* logs a reduced log that only logs changes of consequential log messages
|
* logs a reduced log that only logs changes of consequential log messages
|
||||||
*/
|
*/
|
||||||
exports.logReduced = (logTextArg, repeatEveryTimesArg = 0) => {
|
exports.logReduced = (logTextArg, repeatEveryTimesArg = 0) => {
|
||||||
if (logTextArg === previousMessage && (repeatEveryTimesArg === 0 || sameMessageCounter != repeatEveryTimesArg)) {
|
if (logTextArg === previousMessage && (repeatEveryTimesArg === 0 || sameMessageCounter !== repeatEveryTimesArg)) {
|
||||||
sameMessageCounter++;
|
sameMessageCounter++;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -77,4 +77,4 @@ exports.logReduced = (logTextArg, repeatEveryTimesArg = 0) => {
|
|||||||
};
|
};
|
||||||
let previousMessage = '';
|
let previousMessage = '';
|
||||||
let sameMessageCounter = 0;
|
let sameMessageCounter = 0;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLmxvZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2JlYXV0eWxvZy5sb2cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBCQUF1QjtBQUV2QixtRUFBbUQ7QUFFbkQ7Ozs7R0FJRztBQUVRLFFBQUEsR0FBRyxHQUFHLENBQUMsT0FBTztJQUNyQixNQUFNLENBQUMsbUNBQVcsQ0FBQyxLQUFLLEVBQUMsT0FBTyxDQUFDLENBQUE7QUFDckMsQ0FBQyxDQUFBO0FBRVUsUUFBQSxJQUFJLEdBQUcsQ0FBQyxPQUFPO0lBQ3RCLE1BQU0sQ0FBQyxtQ0FBVyxDQUFDLE1BQU0sRUFBQyxPQUFPLENBQUMsQ0FBQTtBQUN0QyxDQUFDLENBQUE7QUFFRDs7OztHQUlHO0FBQ1EsUUFBQSxFQUFFLEdBQUcsQ0FBQyxPQUFPO0lBQ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QThCLENBQUM7SUFDdkUsRUFBRSxDQUFDLENBQUMsVUFBVSxLQUFLLGVBQWUsSUFBSSxDQUFDLG1CQUFtQixLQUFLLENBQUMsSUFBSSxrQkFBa0IsS0FBSyxtQkFBbUIsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUM5RyxrQkFBa0IsRUFBRSxDQUFBO0lBQ3hCLENBQUM7SUFBQyxJQUFJLENBQUMsQ0FBQztRQUNKLGtCQUFrQixHQUFHLENBQUMsQ0FBQTtRQUN0QixlQUFlLEdBQUcsVUFBVSxDQUFBO1FBQzVCLFdBQUcsQ0FBQyxVQUFVLENBQUMsQ0FBQTtJQUNuQixDQUFDO0FBQ0wsQ0FBQyxDQUFBO0FBQ0QsSUFBSSxlQUFlLEdBQVcsRUFBRSxDQUFBO0FBQ2hDLElBQUksa0JBQWtCLEdBQVcsQ0FBQyxDQUFBIn0=
|
2
dist/beautylog.plugins.d.ts
vendored
2
dist/beautylog.plugins.d.ts
vendored
@ -1,7 +1,7 @@
|
|||||||
import 'typings-global';
|
import 'typings-global';
|
||||||
import * as lodash from 'lodash';
|
import * as lodash from 'lodash';
|
||||||
import * as smartenv from 'smartenv';
|
import * as smartenv from 'smartenv';
|
||||||
import * as q from 'q';
|
import * as q from 'smartq';
|
||||||
import * as clc from 'cli-color';
|
import * as clc from 'cli-color';
|
||||||
declare let figlet: any;
|
declare let figlet: any;
|
||||||
import * as loggly from 'loggly';
|
import * as loggly from 'loggly';
|
||||||
|
4
dist/beautylog.plugins.js
vendored
4
dist/beautylog.plugins.js
vendored
@ -4,7 +4,7 @@ const lodash = require("lodash");
|
|||||||
exports.lodash = lodash;
|
exports.lodash = lodash;
|
||||||
const smartenv = require("smartenv");
|
const smartenv = require("smartenv");
|
||||||
exports.smartenv = smartenv;
|
exports.smartenv = smartenv;
|
||||||
const q = require("q");
|
const q = require("smartq");
|
||||||
exports.q = q;
|
exports.q = q;
|
||||||
const clc = require("cli-color");
|
const clc = require("cli-color");
|
||||||
exports.clc = clc;
|
exports.clc = clc;
|
||||||
@ -14,4 +14,4 @@ const loggly = require("loggly");
|
|||||||
exports.loggly = loggly;
|
exports.loggly = loggly;
|
||||||
let ora = require('ora');
|
let ora = require('ora');
|
||||||
exports.ora = ora;
|
exports.ora = ora;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXdCO0FBRXhCLGlDQUFnQztBQVM1QixpQkFUUSxNQUFNLENBU1I7QUFSVixxQ0FBb0M7QUFTaEMsbUJBVFEsUUFBUSxDQVNSO0FBUlosdUJBQXNCO0FBU2xCLFlBVFEsQ0FBQyxDQVNSO0FBUkwsaUNBQWdDO0FBUzVCLGNBVFEsR0FBRyxDQVNSO0FBUlAsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBUzFCLGlCQVRBLE1BQU0sQ0FTQTtBQVJWLGlDQUFnQztBQVM1QixpQkFUUSxNQUFNLENBU1I7QUFSVixJQUFJLEdBQUcsR0FBRyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUE7QUFTcEIsY0FUQSxHQUFHLENBU0EifQ==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXdCO0FBRXhCLGlDQUFnQztBQVM1Qix3QkFBTTtBQVJWLHFDQUFvQztBQVNoQyw0QkFBUTtBQVJaLDRCQUEyQjtBQVN2QixjQUFDO0FBUkwsaUNBQWdDO0FBUzVCLGtCQUFHO0FBUlAsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBUzFCLHdCQUFNO0FBUlYsaUNBQWdDO0FBUzVCLHdCQUFNO0FBUlYsSUFBSSxHQUFHLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFBO0FBU3BCLGtCQUFHIn0=
|
0
dist/beautylog.register.d.ts
vendored
Normal file
0
dist/beautylog.register.d.ts
vendored
Normal file
1
dist/beautylog.register.js
vendored
Normal file
1
dist/beautylog.register.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnJlZ2lzdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvYmVhdXR5bG9nLnJlZ2lzdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
10
dist/beautylog.remote.js
vendored
10
dist/beautylog.remote.js
vendored
@ -2,10 +2,10 @@
|
|||||||
const plugins = require("./beautylog.plugins");
|
const plugins = require("./beautylog.plugins");
|
||||||
let client;
|
let client;
|
||||||
let clientData = {
|
let clientData = {
|
||||||
serverName: "myServer",
|
serverName: 'myServer',
|
||||||
applicationName: "myApp",
|
applicationName: 'myApp',
|
||||||
message: "undefined",
|
message: 'undefined',
|
||||||
messageType: "undefined"
|
messageType: 'undefined'
|
||||||
};
|
};
|
||||||
exports.remoteLog = (logType, logMessage) => {
|
exports.remoteLog = (logType, logMessage) => {
|
||||||
clientData.messageType = logType;
|
clientData.messageType = logType;
|
||||||
@ -29,4 +29,4 @@ let loggly = (optionsArg) => {
|
|||||||
exports.remote = {
|
exports.remote = {
|
||||||
loggly: loggly
|
loggly: loggly
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJma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SxFQUFFLElBQUk7S0FDYixDQUFDLENBQUE7SUFDRixVQUFVLENBQUMsZUFBZSxHQUFHLFVBQVUsQ0FBQyxPQUFPLENBQUE7SUFDL0MsVUFBVSxDQUFDLFVBQVUsR0FBRyxVQUFVLENBQUMsVUFBVSxDQUFBO0FBQ2pELENBQUMsQ0FBQTtBQUVVLFFBQUEsTUFBTSxHQUFHO0lBQ2hCLE1BQU0sRUFBRSxNQUFNO0NBQ2pCLENBQUEifQ==
|
10
dist/index.d.ts
vendored
10
dist/index.d.ts
vendored
@ -1,5 +1,5 @@
|
|||||||
import "typings-global";
|
import 'typings-global';
|
||||||
export { Ora } from "./beautylog.classes.ora";
|
export { Ora } from './beautylog.classes.ora';
|
||||||
export { dir, error, info, log, logReduced, ok, success, warn, newLine } from "./beautylog.log";
|
export { dir, error, info, log, logReduced, ok, success, warn, newLine } from './beautylog.log';
|
||||||
export { figlet, figletSync } from "./beautylog.figlet";
|
export { figlet, figletSync } from './beautylog.figlet';
|
||||||
export { remote } from "./beautylog.remote";
|
export { remote } from './beautylog.remote';
|
||||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -19,4 +19,4 @@ exports.figlet = beautylog_figlet_1.figlet;
|
|||||||
exports.figletSync = beautylog_figlet_1.figletSync;
|
exports.figletSync = beautylog_figlet_1.figletSync;
|
||||||
var beautylog_remote_1 = require("./beautylog.remote");
|
var beautylog_remote_1 = require("./beautylog.remote");
|
||||||
exports.remote = beautylog_remote_1.remote;
|
exports.remote = beautylog_remote_1.remote;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXdCO0FBSXhCLGlCQUFpQjtBQUNqQixpRUFBNEM7QUFBcEMsc0NBQUEsR0FBRyxDQUFBO0FBRVgsaUJ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
|
11
package.json
11
package.json
@ -33,18 +33,17 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/lodash": "4.x.x",
|
"@types/lodash": "4.x.x",
|
||||||
"@types/loggly": "^1.1.30",
|
"@types/loggly": "^1.1.30",
|
||||||
"@types/q": "0.x.x",
|
|
||||||
"cli-color": "^1.1.0",
|
"cli-color": "^1.1.0",
|
||||||
"figlet": "^1.2.0",
|
"figlet": "^1.2.0",
|
||||||
"lodash": "^4.16.4",
|
"lodash": "^4.17.4",
|
||||||
"loggly": "^1.1.1",
|
"loggly": "^1.1.1",
|
||||||
"ora": "^0.3.0",
|
"ora": "^1.1.0",
|
||||||
"q": "^1.4.1",
|
"smartenv": "^2.0.0",
|
||||||
"smartenv": "^1.2.5",
|
"smartq": "^1.0.4",
|
||||||
"typings-global": "^1.0.14"
|
"typings-global": "^1.0.14"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts-g": "^5.2.8",
|
"npmts-g": "^6.0.0",
|
||||||
"typings-test": "^1.0.3"
|
"typings-test": "^1.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,19 +7,18 @@ let nativeError = console.error
|
|||||||
/**
|
/**
|
||||||
* routes the console to got through beautylog, so beautylog can take action before things are logged to console.
|
* routes the console to got through beautylog, so beautylog can take action before things are logged to console.
|
||||||
*/
|
*/
|
||||||
let route = function(statusArg:boolean){
|
let route = function(statusArg: boolean){
|
||||||
if(statusArg == true){
|
if (statusArg === true) {
|
||||||
console.log = beautyConsole.log
|
console.log = beautyConsole.log
|
||||||
console.error = beautyConsole.error
|
console.error = beautyConsole.error
|
||||||
} else {
|
} else {
|
||||||
console.log = nativeLog
|
console.log = nativeLog
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export let beautyConsole = {
|
export let beautyConsole = {
|
||||||
log: function(logArg:any){
|
log: function(logArg: any){
|
||||||
if(oraActive){
|
if (oraActive) {
|
||||||
activeOra.pause()
|
activeOra.pause()
|
||||||
nativeLog.apply(nativeLog, arguments)
|
nativeLog.apply(nativeLog, arguments)
|
||||||
activeOra.start()
|
activeOra.start()
|
||||||
@ -28,7 +27,7 @@ export let beautyConsole = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(){
|
error: function(){
|
||||||
if(oraActive){
|
if (oraActive) {
|
||||||
activeOra.pause()
|
activeOra.pause()
|
||||||
nativeLog.apply(nativeError, arguments)
|
nativeLog.apply(nativeError, arguments)
|
||||||
activeOra.start()
|
activeOra.start()
|
||||||
|
@ -6,15 +6,18 @@ let defaultOptions = {
|
|||||||
cb: function() {}
|
cb: function() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export let figlet = function(textArg:string,optionsArg?){
|
export let figlet = function(textArg: string, optionsArg?){
|
||||||
let done = plugins.q.defer()
|
let done = plugins.q.defer()
|
||||||
let mergeOptions = plugins.lodash.cloneDeep(defaultOptions)
|
let mergeOptions = plugins.lodash.cloneDeep(defaultOptions)
|
||||||
let options = plugins.lodash.assign(mergeOptions,optionsArg)
|
let options = plugins.lodash.assign(mergeOptions,optionsArg)
|
||||||
plugins.figlet(textArg,{
|
plugins.figlet(
|
||||||
|
textArg,
|
||||||
|
{
|
||||||
font: options.font,
|
font: options.font,
|
||||||
horizontalLayout: 'default',
|
horizontalLayout: 'default',
|
||||||
verticalLayout: 'default'
|
verticalLayout: 'default'
|
||||||
}, function(err, data) {
|
},
|
||||||
|
function(err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('Something went wrong...')
|
console.log('Something went wrong...')
|
||||||
console.dir(err)
|
console.dir(err)
|
||||||
@ -23,7 +26,8 @@ export let figlet = function(textArg:string,optionsArg?){
|
|||||||
console.log(data[options.color])
|
console.log(data[options.color])
|
||||||
options.cb()
|
options.cb()
|
||||||
done.resolve()
|
done.resolve()
|
||||||
})
|
}
|
||||||
|
)
|
||||||
return done.promise
|
return done.promise
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ let xC = {
|
|||||||
cyan: 87,
|
cyan: 87,
|
||||||
green: 112,
|
green: 112,
|
||||||
red: 196,
|
red: 196,
|
||||||
white: 231,
|
white: 231
|
||||||
}
|
}
|
||||||
|
|
||||||
let localBl = {
|
let localBl = {
|
||||||
@ -113,4 +113,4 @@ let logBrowser = function (logText, logType) {
|
|||||||
console.log('unknown logType for "' + logText + '"')
|
console.log('unknown logType for "' + logText + '"')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
@ -76,7 +76,7 @@ export let newLine = (linesArg: number = 1) => {
|
|||||||
* logs a reduced log that only logs changes of consequential log messages
|
* logs a reduced log that only logs changes of consequential log messages
|
||||||
*/
|
*/
|
||||||
export let logReduced = (logTextArg: string,repeatEveryTimesArg: number = 0) => {
|
export let logReduced = (logTextArg: string,repeatEveryTimesArg: number = 0) => {
|
||||||
if (logTextArg === previousMessage && (repeatEveryTimesArg === 0 || sameMessageCounter != repeatEveryTimesArg)) {
|
if (logTextArg === previousMessage && (repeatEveryTimesArg === 0 || sameMessageCounter !== repeatEveryTimesArg)) {
|
||||||
sameMessageCounter++
|
sameMessageCounter++
|
||||||
} else {
|
} else {
|
||||||
sameMessageCounter = 0
|
sameMessageCounter = 0
|
||||||
|
@ -2,7 +2,7 @@ import 'typings-global';
|
|||||||
|
|
||||||
import * as lodash from 'lodash'
|
import * as lodash from 'lodash'
|
||||||
import * as smartenv from 'smartenv'
|
import * as smartenv from 'smartenv'
|
||||||
import * as q from 'q'
|
import * as q from 'smartq'
|
||||||
import * as clc from 'cli-color'
|
import * as clc from 'cli-color'
|
||||||
let figlet = require('figlet')
|
let figlet = require('figlet')
|
||||||
import * as loggly from 'loggly'
|
import * as loggly from 'loggly'
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
import * as plugins from "./beautylog.plugins";
|
import * as plugins from './beautylog.plugins'
|
||||||
|
|
||||||
let client;
|
let client
|
||||||
let clientData = {
|
let clientData = {
|
||||||
serverName: "myServer",
|
serverName: 'myServer',
|
||||||
applicationName: "myApp",
|
applicationName: 'myApp',
|
||||||
message: "undefined",
|
message: 'undefined',
|
||||||
messageType: "undefined"
|
messageType: 'undefined'
|
||||||
}
|
}
|
||||||
export let remoteLog = (logType: string, logMessage: string) => {
|
export let remoteLog = (logType: string, logMessage: string) => {
|
||||||
clientData.messageType = logType;
|
clientData.messageType = logType
|
||||||
clientData.message = logMessage;
|
clientData.message = logMessage
|
||||||
if (client) {
|
if (client) {
|
||||||
client.log(clientData);
|
client.log(clientData)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,18 +21,18 @@ let loggly = (optionsArg: {
|
|||||||
token: string,
|
token: string,
|
||||||
subdomain: string,
|
subdomain: string,
|
||||||
appName: string,
|
appName: string,
|
||||||
serverName:string
|
serverName: string
|
||||||
}) => {
|
}) => {
|
||||||
client = plugins.loggly.createClient({
|
client = plugins.loggly.createClient({
|
||||||
token: optionsArg.token,
|
token: optionsArg.token,
|
||||||
subdomain: optionsArg.subdomain,
|
subdomain: optionsArg.subdomain,
|
||||||
tags: [],
|
tags: [],
|
||||||
json: true
|
json: true
|
||||||
});
|
})
|
||||||
clientData.applicationName = optionsArg.appName;
|
clientData.applicationName = optionsArg.appName
|
||||||
clientData.serverName = optionsArg.serverName;
|
clientData.serverName = optionsArg.serverName
|
||||||
}
|
}
|
||||||
|
|
||||||
export let remote = {
|
export let remote = {
|
||||||
loggly: loggly
|
loggly: loggly
|
||||||
};
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user