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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
scripts
GraphDeployer
Commits
bf7560e7
Commit
bf7560e7
authored
2 years ago
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Improve logging (coscine/issues#2568)
parent
a9a5788f
No related branches found
No related tags found
2 merge requests
!12
Release: Sprint 14
,
!11
Fix: Improve logging (coscine/issues#2568)
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/GraphDeployer/nlog.config
+46
-16
46 additions, 16 deletions
src/GraphDeployer/nlog.config
with
46 additions
and
16 deletions
src/GraphDeployer/nlog.config
+
46
−
16
View file @
bf7560e7
<?
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"
>
<
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"
/>
...
...
@@ -23,6 +31,28 @@
<
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
-->
<
target
name
=
"consoleLog"
xsi
:
type
=
"ColoredConsole"
layout
=
"[${uppercase:${level}}]: ${message}"
>
...
...
@@ -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
-->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment