aboutsummaryrefslogtreecommitdiff
path: root/part4/blog/utils/logger.js
diff options
context:
space:
mode:
Diffstat (limited to 'part4/blog/utils/logger.js')
-rw-r--r--part4/blog/utils/logger.js11
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
+}