@godspeedsystems/core
Version:
> 4th Generation Declarative Microservice Framework
21 lines (20 loc) • 626 B
JavaScript
/*
* You are allowed to study this software for learning and local * development purposes only. Any other use without explicit permission by Mindgrep, is prohibited.
* © 2022 Mindgrep Technologies Pvt Ltd
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
function _default(ctx, args) {
const { childLogger } = ctx;
const level = args.level || ctx.config.log_level || 'info';
childLogger[args.level]({
"module": "com.gs.log"
}, args.data);
}