ContentBuildLogger¶
-
class
ContentBuildLogger
: System.Object Provides methods for reporting informational messages or warnings from content importers and processors. Do not use this class to report errors. Instead, report errors by throwing a PipelineException or InvalidContentException.
-
string
LoggerRootDirectory
Gets or sets the base reference path used when reporting errors during the content build process.
-
public abstract void
LogImportantMessage
(string message, System.Object[] messageArgs) Outputs a high-priority status message from a content importer or processor.
Parameters: - message (string) – Message being reported.
- messageArgs (System.Object[]) – Arguments for the reported message.
-
public abstract void
LogMessage
(string message, System.Object[] messageArgs) Outputs a low priority status message from a content importer or processor.
Parameters: - message (string) – Message being reported.
- messageArgs (System.Object[]) – Arguments for the reported message.
-
public abstract void
LogWarning
(string helpLink, ContentIdentity contentIdentity, string message, System.Object[] messageArgs) Outputs a warning message from a content importer or processor.
Parameters: - helpLink (string) – Link to an existing online help topic containing related information.
- contentIdentity (Microsoft.Xna.Framework.Content.Pipeline.ContentIdentity) – Identity of the content item that generated the message.
- message (string) – Message being reported.
- messageArgs (System.Object[]) – Arguments for the reported message.
-
public void
PopFile
() Outputs a message indicating that a content asset has completed processing.
-
public void
PushFile
(string filename) Outputs a message indicating that a content asset has begun processing. All logger warnings or error exceptions from this time forward to the next PopFile call refer to this file.
Parameters: - filename (string) – Name of the file containing future messages.
-
public void
Indent
()
-
public void
Unindent
()
-
string