Skip to content

Commit

Permalink
Add test files to validate the functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
prathap-safe committed Aug 30, 2022
1 parent b6b10e5 commit 712fa89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const logger = require("logger-safe-security").default;
const appLogger = logger.child({ service: "sample" });

logger.info("This is a parent logger");
appLogger.info("This is a child logger");
5 changes: 5 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import logger from "logger-safe-security";
const appLogger = logger.child({ service: "sample" });

logger.info("This is a parent logger");
appLogger.info("This is a child logger");

0 comments on commit 712fa89

Please sign in to comment.