-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add verbose messages around harvesting.
- Loading branch information
Showing
3 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
|
||
namespace WixToolset.Core | ||
{ | ||
using WixToolset.Data; | ||
|
||
internal static class OptimizerVerboses | ||
{ | ||
public static Message HarvestedFile(SourceLineNumber sourceLineNumbers, string harvestedFile) | ||
{ | ||
return Message(sourceLineNumbers, Ids.HarvestedFile, "Harvested file: {0}", harvestedFile); | ||
} | ||
|
||
public static Message ExcludedFile(SourceLineNumber sourceLineNumbers, string excludedFile) | ||
{ | ||
return Message(sourceLineNumbers, Ids.ExcludedFile, "File excluded from harvesting: {0}", excludedFile); | ||
} | ||
|
||
private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) | ||
{ | ||
return new Message(sourceLineNumber, MessageLevel.Verbose, (int)id, format, args); | ||
} | ||
|
||
public enum Ids | ||
{ | ||
HarvestedFile = 8700, | ||
ExcludedFile = 8701, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters