diff --git a/Properties/tinylog.properties b/Properties/tinylog.properties
index 7570428..7ef3072 100644
--- a/Properties/tinylog.properties
+++ b/Properties/tinylog.properties
@@ -1,4 +1,11 @@
-exception=unpack, strip: jdk.internal
-writer=console
-writer.exception=drop cause
-writer.format={date:dd-MM-yyyy HH:mm:ss} {class}.{method}() : {message}
\ No newline at end of file
+writerConsole=console
+writerConsole.level=info
+writerConsole.format={date:dd-MM-yyyy HH:mm:ss} {class}.{method}() :\n{message}
+
+writerFile=rolling file
+writerFile.file=logs/{date:dd-MM-yyyy}.{count}.log
+writerFile.level=info
+writerFile.charset=UTF-8
+writerFile.append=true
+writerFile.policies=daily
+writerFile.format={date:dd-MM-yyyy HH:mm:ss}\t{class}.{method}() :\t{message}
\ No newline at end of file
diff --git a/WebContentt/public/assets/js/app.js b/WebContentt/public/assets/js/app.js
index 5841b73..9de4577 100644
--- a/WebContentt/public/assets/js/app.js
+++ b/WebContentt/public/assets/js/app.js
@@ -167,4 +167,60 @@ function loginload(){
if (socket && socket.connected) {
socket.disconnect();
}
+}
+
+function logload(){
+ console.log("Log loaded");
+ if (socket && socket.connected) {
+ socket.disconnect();
+ }
+ getLogFiles();
+ $('#logfiles').change(function(){
+ let logname = $('#logfiles').val();
+ if (logname && logname.length>0){
+ getLogData(logname);
+ }
+ });
+}
+
+function getLogFiles(){
+ fetch('/logfiles', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ }
+ }).then((response)=>{
+ response.json().then((data)=>{
+ let logList = $('#logfiles');
+ logList.empty();
+ logList.append('');
+ data.forEach((log)=>{
+ logList.append('');
+ });
+ });
+ });
+}
+
+function getLogData(logname){
+ fetch('/logdata', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: logname
+ }).then((response)=>{
+ response.json().then((data)=>{
+ let tablebody = $('#tablebody');
+ tablebody.empty();
+ data.forEach((log)=>{
+ let str = '
';
+ str += '| '+log.Date+' | ';
+ str += ''+log.Time+' | ';
+ str += ''+log.Method+' | ';
+ str += ''+log.Message+' | ';
+ str += '
';
+ tablebody.append(str);
+ });
+ });
+ });
}
\ No newline at end of file
diff --git a/WebContentt/public/index.html b/WebContentt/public/index.html
index b8651eb..7ece44a 100644
--- a/WebContentt/public/index.html
+++ b/WebContentt/public/index.html
@@ -27,6 +27,7 @@
@@ -85,8 +86,8 @@
-
-
+
+
diff --git a/WebContentt/public/log.html b/WebContentt/public/log.html
new file mode 100644
index 0000000..01e1884
--- /dev/null
+++ b/WebContentt/public/log.html
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+ SIPIntercom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Date |
+ Time |
+ Method |
+ Message |
+
+
+
+
+ | Cell 1 |
+ Cell 2 |
+ Cell 3 |
+ Cell 4 |
+
+
+ | Cell 3 |
+ Cell 4 |
+ Cell 3 |
+ Cell 4 |
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContentt/public/setting.html b/WebContentt/public/setting.html
index 7410540..2203445 100644
--- a/WebContentt/public/setting.html
+++ b/WebContentt/public/setting.html
@@ -27,6 +27,7 @@
@@ -49,7 +50,7 @@
-
-