com.android.manifmerger
Interface IMergerLog


public interface IMergerLog

Logger interface for the ManifestMerger.


Nested Class Summary
static class IMergerLog.FileAndLine
          Information about the file and line number where an error occurred.
static class IMergerLog.Severity
          Severity of the error message.
 
Field Summary
static java.lang.String LIBRARY
          The reference to "a library" used in IMergerLog.FileAndLine when the path to the library file isn't known.
static java.lang.String MAIN_MANIFEST
          The reference to the "main manifest" used in IMergerLog.FileAndLine when the path to the main manifest file isn't known.
 
Method Summary
 void conflict(IMergerLog.Severity severity, IMergerLog.FileAndLine location1, IMergerLog.FileAndLine location2, java.lang.String message, java.lang.Object... msgParams)
          Logs a conflict, that is an error that happens when comparing 2 manifests.
 void error(IMergerLog.Severity severity, IMergerLog.FileAndLine location, java.lang.String message, java.lang.Object... msgParams)
          Logs an error that occurred at a specific single manifest.
 

Field Detail

MAIN_MANIFEST

static final java.lang.String MAIN_MANIFEST
The reference to the "main manifest" used in IMergerLog.FileAndLine when the path to the main manifest file isn't known. This happens when the ManifestMerger is called with the process(Document...) interface.

See Also:
Constant Field Values

LIBRARY

static final java.lang.String LIBRARY
The reference to "a library" used in IMergerLog.FileAndLine when the path to the library file isn't known. This happens when the ManifestMerger is called with the process(Document...) interface.

See Also:
Constant Field Values
Method Detail

error

void error(@NonNull
           IMergerLog.Severity severity,
           @NonNull
           IMergerLog.FileAndLine location,
           @NonNull
           java.lang.String message,
           java.lang.Object... msgParams)
Logs an error that occurred at a specific single manifest.

Parameters:
severity - Whether this is an actual error or a mere warning.
location - A file and line location of where the error was detected.
message - A message string, suitable for String.format(String, Object...).
msgParams - The optional parameters for the message string.

conflict

void conflict(@NonNull
              IMergerLog.Severity severity,
              @NonNull
              IMergerLog.FileAndLine location1,
              @NonNull
              IMergerLog.FileAndLine location2,
              @NonNull
              java.lang.String message,
              java.lang.Object... msgParams)
Logs a conflict, that is an error that happens when comparing 2 manifests.

Parameters:
severity - Whether this is an actual error or a mere warning.
location1 - A file and line location of where the error was detected. By convention, location1 is generally the main manifest location.
location2 - A file and line location of where the error was detected. By convention, location2 is generally a library location.
message - A message string, suitable for String.format(String, Object...).
msgParams - The optional parameters for the message string.