| 1 | // 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. |
| 2 | |
| 3 | namespace WixToolset.Core |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | |
| 7 | internal static class OptimizerVerboses |
| 8 | { |
| 9 | public static Message HarvestedFile(SourceLineNumber sourceLineNumbers, string harvestedFile) |
| 10 | { |
| 11 | return Message(sourceLineNumbers, Ids.HarvestedFile, "Harvested file: {0}", harvestedFile); |
| 12 | } |
| 13 | |
| 14 | public static Message ExcludedFile(SourceLineNumber sourceLineNumbers, string excludedFile) |
| 15 | { |
| 16 | return Message(sourceLineNumbers, Ids.ExcludedFile, "File excluded from harvesting: {0}", excludedFile); |
| 17 | } |
| 18 | |
| 19 | private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) |
| 20 | { |
| 21 | return new Message(sourceLineNumber, MessageLevel.Verbose, (int)id, format, args); |
| 22 | } |
| 23 | |
| 24 | public enum Ids |
| 25 | { |
| 26 | HarvestedFile = 8700, |
| 27 | ExcludedFile = 8701, |
| 28 | } |
| 29 | } |
| 30 | } |