diff options
author | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2023-06-18 20:26:14 -0400 |
---|---|---|
committer | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2023-06-18 20:26:14 -0400 |
commit | 81c9e17aebc95f0939c5b636ca64af9d47dfc992 (patch) | |
tree | 98388d586729b513eee9f975a5819cc6078874e2 /part4/blog/utils/logger.js | |
parent | 13ca52505d4a247f72c5fad8161dc497da6da368 (diff) |
ex4.2 tackling complexity via modularity
Diffstat (limited to 'part4/blog/utils/logger.js')
-rw-r--r-- | part4/blog/utils/logger.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/part4/blog/utils/logger.js b/part4/blog/utils/logger.js new file mode 100644 index 0000000..f4b4c78 --- /dev/null +++ b/part4/blog/utils/logger.js @@ -0,0 +1,11 @@ +const info = (...params) => { + console.log('info: ', ...params) +} + +const error = (...params) => { + console.log('error: ', ...params) +} + +module.exports = { + info, error +} |