Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
Inovasi Daerah Master
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ghitha Dinan
Inovasi Daerah Master
Commits
3915bcd1
Commit
3915bcd1
authored
Nov 10, 2021
by
Ghitha Dinan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file fixing
parent
7c930679
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
31 deletions
+5
-31
LogInterceptor.kt
...riang/inovasi/daerah/master/interceptor/LogInterceptor.kt
+5
-2
logback.xml
src/main/resources/logback.xml
+0
-29
No files found.
src/main/kotlin/id/co/sangkuriang/inovasi/daerah/master/interceptor/LogInterceptor.kt
View file @
3915bcd1
package
id.co.sangkuriang.inovasi.daerah.master.interceptor
import
com.fasterxml.jackson.databind.DeserializationFeature
import
com.fasterxml.jackson.databind.ObjectMapper
import
id.co.sangkuriang.inovasi.daerah.master.model.response.ReturnData
import
id.co.sangkuriang.inovasi.daerah.master.utility.getUsersLogin
...
...
@@ -64,9 +65,11 @@ class LogInterceptor : Filter {
}
}
va
l
returnData
:
ReturnData
?
=
null
va
r
returnData
:
ReturnData
?
=
null
try
{
ObjectMapper
().
readValue
(
responseArray
,
ReturnData
::
class
.
java
)
val
objectMapper
=
ObjectMapper
()
objectMapper
.
configure
(
DeserializationFeature
.
FAIL_ON_UNKNOWN_PROPERTIES
,
false
)
returnData
=
objectMapper
.
readValue
(
responseArray
,
ReturnData
::
class
.
java
)
}
catch
(
e
:
Exception
)
{
}
...
...
src/main/resources/logback.xml
View file @
3915bcd1
...
...
@@ -5,30 +5,6 @@ See here for more details: http://gordondickens.com/wordpress/2013/03/27/sawing-
<property
name=
"DEV_HOME"
value=
"D://app-files//inovasi_daerah_master//log"
/>
<!-- <property name="DEV_HOME" value="/home/inovasi-daerah/data/log/inovasi_daerah_master"/>-->
<appender
name=
"STDOUT"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<pattern>
%-5relative %-5level %logger{35} - %msg%n
</pattern>
</encoder>
</appender>
<appender
name=
"DEBUG-LOG"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
${DEV_HOME}/debug.log
</file>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<Pattern>
%d{yyyy-MM-dd HH:mm:ss} %-5level - %msg%n
</Pattern>
</encoder>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!-- rollover daily -->
<fileNamePattern>
${DEV_HOME}/archived/debug.%d{yyyy-MM-dd}.%i.log
</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"
>
<maxFileSize>
10MB
</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
</appender>
<appender
name=
"ACCESS-LOG"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
${DEV_HOME}/access.log
</file>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
...
...
@@ -47,11 +23,6 @@ See here for more details: http://gordondickens.com/wordpress/2013/03/27/sawing-
</rollingPolicy>
</appender>
<root
level=
"debug"
>
<appender-ref
ref=
"DEBUG-LOG"
/>
<appender-ref
ref=
"STDOUT"
/>
</root>
<logger
name=
"access.log"
level=
"debug"
>
<appender-ref
ref=
"ACCESS-LOG"
/>
</logger>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment