Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GraphDeployer
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
scripts
GraphDeployer
Merge requests
!11
Fix: Improve logging (coscine/issues#2568)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix: Improve logging (coscine/issues#2568)
Issue/2568-betterLogging
into
dev
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Benedikt Heinrichs
requested to merge
Issue/2568-betterLogging
into
dev
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
bf7560e7
1 commit,
1 year ago
1 file
+
46
−
16
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/GraphDeployer/nlog.config
+
46
−
16
Options
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
nlog
xmlns
=
"http://www.nlog-project.org/schemas/NLog.xsd"
xmlns
:
xsi
=
"http://www.w3.org/2001/XMLSchema-instance"
throwExceptions
=
"true"
throwConfigExceptions
=
"true"
throwExceptions
=
"false"
internalLogFile
=
"Logs/internal-nlog.txt"
internalLogLevel
=
"Trace"
>
<
targets
>
<!--
Write
logs
to
File
-->
<
target
xsi
:
type
=
"File"
name
=
"fileLog"
fileName
=
"C:/coscine/logs/${assembly-name}/${assembly-version}/log-${shortdate}.log"
>
<
layout
xsi
:
type
=
"CompoundLayout"
>
<
layout
xsi
:
type
=
"JsonLayout"
EscapeForwardSlash
=
"true"
>
<
attribute
layout
=
"${longdate}"
name
=
"Timestamp"
/>
<
attribute
layout
=
"${level:upperCase=true}"
name
=
"Level"
/>
<
attribute
layout
=
"${message}"
name
=
"Message"
/>
<
attribute
layout
=
"${exception:format=tostring,StackTrace}"
name
=
"Exception"
/>
<
attribute
layout
=
"${ndlc}"
name
=
"Context"
/>
<
attribute
layout
=
"${event-properties:item=Metric}"
name
=
"Alarm"
encode
=
"false"
/>
<
attribute
name
=
"EventProperties"
encode
=
"false"
>
<
layout
xsi
:
type
=
'JsonLayout'
includeAllProperties
=
"true"
maxRecursionLimit
=
"2"
/>
</
attribute
>
<
target
xsi
:
type
=
"FallbackGroup"
name
=
"fileGroup"
>
<
target
xsi
:
type
=
"File"
name
=
"fileLogD"
fileName
=
"D:/coscine/logs/${assembly-name}/${assembly-version}/log-${shortdate}.log"
maxArchiveFiles
=
"7"
>
<
layout
xsi
:
type
=
"CompoundLayout"
>
<
layout
xsi
:
type
=
"JsonLayout"
EscapeForwardSlash
=
"true"
>
<
attribute
layout
=
"${longdate}"
name
=
"Timestamp"
/>
<
attribute
layout
=
"${level:upperCase=true}"
name
=
"Level"
/>
<
attribute
layout
=
"${message}"
name
=
"Message"
/>
<
attribute
layout
=
"${exception:format=tostring,StackTrace}"
name
=
"Exception"
/>
<
attribute
layout
=
"${ndlc}"
name
=
"Context"
/>
<
attribute
layout
=
"${event-properties:item=Metric}"
name
=
"Alarm"
encode
=
"false"
/>
<
attribute
name
=
"EventProperties"
encode
=
"false"
>
<
layout
xsi
:
type
=
'JsonLayout'
includeAllProperties
=
"true"
maxRecursionLimit
=
"2"
/>
</
attribute
>
</
layout
>
<
layout
xsi
:
type
=
'SimpleLayout'
text
=
","
/>
</
layout
>
<
layout
xsi
:
type
=
'SimpleLayout'
text
=
","
/>
</
layout
>
</
target
>
<
target
xsi
:
type
=
"File"
name
=
"fileLogC"
fileName
=
"C:/coscine/logs/${assembly-name}/${assembly-version}/log-${shortdate}.log"
maxArchiveFiles
=
"7"
>
<
layout
xsi
:
type
=
"CompoundLayout"
>
<
layout
xsi
:
type
=
"JsonLayout"
EscapeForwardSlash
=
"true"
>
<
attribute
layout
=
"${longdate}"
name
=
"Timestamp"
/>
<
attribute
layout
=
"${level:upperCase=true}"
name
=
"Level"
/>
<
attribute
layout
=
"${message}"
name
=
"Message"
/>
<
attribute
layout
=
"${exception:format=tostring,StackTrace}"
name
=
"Exception"
/>
<
attribute
layout
=
"${ndlc}"
name
=
"Context"
/>
<
attribute
layout
=
"${event-properties:item=Metric}"
name
=
"Alarm"
encode
=
"false"
/>
<
attribute
name
=
"EventProperties"
encode
=
"false"
>
<
layout
xsi
:
type
=
'JsonLayout'
includeAllProperties
=
"true"
maxRecursionLimit
=
"2"
/>
</
attribute
>
</
layout
>
<
layout
xsi
:
type
=
'SimpleLayout'
text
=
","
/>
</
layout
>
</
target
>
</
target
>
<!--
Write
colored
logs
to
Console
-->
@@ -37,7 +67,7 @@
<
rules
>
<!--
All
logs
,
including
from
Microsoft
,
Level
Trace
-->
<
logger
name
=
"*"
minlevel
=
"Trace"
writeTo
=
"file
Log
"
>
<
logger
name
=
"*"
minlevel
=
"Trace"
writeTo
=
"file
Group
"
>
</
logger
>
<!--
All
logs
,
including
from
Microsoft
,
Level
Info
-->
Loading