-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
41 lines (41 loc) · 1.08 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const logger_1 = require("@aws-lambda-powertools/logger");
const logger = new logger_1.Logger({ serviceName: "HelloWorld", logLevel: "DEBUG" });
let myPersonObject = {
message: "This is the Message for Person Max",
personID: "123",
firstName: "Max",
familyName: "Musterman",
jobHistory: [
{
dateFrom: "2000-01-01",
dateTo: "2001-01-01",
jobID: 1,
},
{
dateFrom: "2001-01-01",
dateTo: "2002-01-01",
jobID: 2,
},
{
dateFrom: "2002-01-01",
dateTo: "2020-01-01",
jobID: 3,
},
],
};
//@ts-ignore
// logger.console = console;
logger.debug("debug");
logger.warn("warn");
logger.error("error");
logger.info("info");
logger.info(myPersonObject);
console.log("real logging");
console.warn("real warning");
console.info("real info");
console.log(myPersonObject);
process.stdout.write("std out");
process.stdout.write("std out");
//# sourceMappingURL=index.js.map