From 9a7da331ec645f14731e35c08ff6a984e6e4dfde Mon Sep 17 00:00:00 2001
From: odinkh <odinkh@stud.ntnu.no>
Date: Thu, 19 May 2022 19:16:10 +0200
Subject: [PATCH] Added link to inspiration for code

---
 logs/logging.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/logs/logging.go b/logs/logging.go
index 1936b19..15b548b 100644
--- a/logs/logging.go
+++ b/logs/logging.go
@@ -6,6 +6,7 @@ import (
 	"os"
 )
 
+//Created with inspiration from https://dev.to/gholami1313/saving-log-messages-to-a-custom-log-file-in-golang-ce5
 //Function to handle logging of errors to errorlog file with message
 func Logerror(err error, msg string) {
 	// log to custom file
@@ -26,6 +27,7 @@ func Logerror(err error, msg string) {
 	log.Println(msg, err)
 }
 
+//Created with inspiration from https://dev.to/gholami1313/saving-log-messages-to-a-custom-log-file-in-golang-ce5
 //Function to handle information logging to infofile
 func Loginfo(msg string) {
 	LOG_FILE := "./logs/infolog"
@@ -45,6 +47,7 @@ func Loginfo(msg string) {
 	log.Println(msg)
 }
 
+//Created with inspiration from https://dev.to/gholami1313/saving-log-messages-to-a-custom-log-file-in-golang-ce5
 //Function to handle error message display to file. 
 func Logerrorinfo(msg string) {
 	// log to custom file
-- 
GitLab