Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KPI Reporting Generator
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
KPI Reporting Generator
Merge requests
!20
Fix: User Reporting Institutes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix: User Reporting Institutes
Hotfix/2332-userInstitutesInReporting
into
main
Overview
0
Commits
4
Pipelines
3
Changes
22
Merged
Petar Hristov
requested to merge
Hotfix/2332-userInstitutesInReporting
into
main
2 years ago
Overview
0
Commits
4
Pipelines
3
Changes
22
Expand
coscine/issues#2332
0
0
Merge request reports
Compare
main
version 1
fca9d21f
2 years ago
main (base)
and
latest version
latest version
c0a10b9d
4 commits,
2 years ago
version 1
fca9d21f
3 commits,
2 years ago
22 files
+
279
−
88
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
22
Search (e.g. *.vue) (Ctrl+P)
src/KPI Generator/Logging/AssemblyNameLayoutRenderer.cs
0 → 100644
+
23
−
0
Options
using
NLog
;
using
NLog.LayoutRenderers
;
using
System.Text
;
namespace
Coscine.KpiGenerator.Logging
{
[
LayoutRenderer
(
"assembly-name"
)]
public
class
AssemblyNameLayoutRenderer
:
LayoutRenderer
{
protected
override
void
Append
(
StringBuilder
builder
,
LogEventInfo
logEvent
)
{
var
assembly
=
typeof
(
Program
).
Assembly
.
GetName
();
if
(
assembly
is
not
null
)
{
builder
.
Append
(
assembly
.
Name
);
}
else
{
builder
.
Append
(
new
Guid
().
ToString
().
Take
(
8
));
}
}
}
}
Loading