Skip to content

Commit 1895758

Browse files
committed
Add Serilog and log build initialization information in Build.cs
1 parent 35c9a50 commit 1895758

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

build/Build.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using Nuke.Common.Execution;
1515
using Nuke.Common.IO;
1616
using Nuke.Common.ProjectModel;
17+
using Serilog;
1718

1819
#pragma warning disable S1144 // remove unused private members
1920
#pragma warning disable S3903 // move class to namespace
@@ -103,4 +104,13 @@ Project[] GetTestProjects() =>
103104
: Array.Empty<Project>();
104105

105106
public static int Main() => Execute<Build>(x => ((ICodeCoverageTarget)x).CodeCoverage);
107+
108+
protected override void OnBuildInitialized()
109+
{
110+
base.OnBuildInitialized();
111+
112+
Log.Information("Build initialized");
113+
Log.Information("Skip Nuget Push: {SkipPush}", (this as IPushNuGetSettings).SkipPush);
114+
115+
}
106116
}

0 commit comments

Comments
 (0)