Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5ca4cb9964 | |||
27bb9a789c |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartlog",
|
"name": "@pushrocks/smartlog",
|
||||||
"version": "2.0.31",
|
"version": "2.0.32",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartlog",
|
"name": "@pushrocks/smartlog",
|
||||||
"version": "2.0.31",
|
"version": "2.0.32",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "minimalistic distributed and extensible logging tool",
|
"description": "minimalistic distributed and extensible logging tool",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -4,7 +4,12 @@ import * as plugins from './smartlog.plugins';
|
|||||||
* a console log optimized for smartlog
|
* a console log optimized for smartlog
|
||||||
*/
|
*/
|
||||||
export class ConsoleLog {
|
export class ConsoleLog {
|
||||||
public log(logLevelArg: plugins.smartlogInterfaces.TLogLevel, logMessageArg: string) {
|
public log(
|
||||||
|
logLevelArg: plugins.smartlogInterfaces.TLogLevel,
|
||||||
|
logMessageArg: string,
|
||||||
|
dataArg?: any,
|
||||||
|
correlationArg?: plugins.smartlogInterfaces.ILogCorrelation
|
||||||
|
) {
|
||||||
console.log(`__# ${logLevelArg}: ${logMessageArg}`);
|
console.log(`__# ${logLevelArg}: ${logMessageArg}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user