ILogRegistry
  public
  
  
  
  interface
  ILogRegistry
  
  
      implements
      
        Log.ILogOutput
      
  
  
| com.android.tradefed.log.ILogRegistry | 
An interface for a ILogOutput singleton logger that multiplexes and manages different
 loggers.
Summary
| Public methods | |
|---|---|
| 
        abstract
        
        
        
        
        void | 
      closeAndRemoveAllLogs()
      Closes and removes all logs being managed by this LogRegistry. | 
| 
        abstract
        
        
        
        
        void | 
      dumpLogs()
      Diagnosis method to dump all logs to files. | 
| 
        abstract
        
        
        
        
        void | 
      dumpToGlobalLog(ILeveledLogOutput log)
      Dumps the entire contents of a  | 
| 
        abstract
        
        
        
        
        Log.LogLevel | 
      getGlobalLogDisplayLevel()
      Returns current log level display for the global log | 
| 
        abstract
        
        
        
        
        void | 
      logEvent(Log.LogLevel logLevel, ILogRegistry.EventType event, Call this method to log an event from a type with the associated information in the map. | 
| 
        abstract
        
        
        
        
        void | 
      registerLogger(ILeveledLogOutput log)
      Registers the logger as the instance to use for the current thread. | 
| 
        abstract
        
        
        
        
        void | 
      saveGlobalLog()
      Saves all the global loggers contents to tmp files. | 
| 
        abstract
        
        
        
        
        void | 
      setGlobalLogDisplayLevel(Log.LogLevel logLevel)
      Set the log level display for the global log | 
| 
        abstract
        
        
        
        
        void | 
      unregisterLogger()
      Unregisters the current logger in effect for the current thread. | 
Public methods
closeAndRemoveAllLogs
public abstract void closeAndRemoveAllLogs ()
Closes and removes all logs being managed by this LogRegistry.
dumpLogs
public abstract void dumpLogs ()
Diagnosis method to dump all logs to files.
dumpToGlobalLog
public abstract void dumpToGlobalLog (ILeveledLogOutput log)
Dumps the entire contents of a ILeveledLogOutput logger to the global log.
 
getGlobalLogDisplayLevel
public abstract Log.LogLevel getGlobalLogDisplayLevel ()
Returns current log level display for the global log
| Returns | |
|---|---|
| Log.LogLevel | logLevel the LogLevelto use | 
logEvent
public abstract void logEvent (Log.LogLevel logLevel, ILogRegistry.EventType event,args) 
Call this method to log an event from a type with the associated information in the map. Time of the event is automatically added.
| Parameters | |
|---|---|
| logLevel | Log.LogLevel: theLogLevelto be printed. | 
| event | ILogRegistry.EventType: theILogRegistry.EventTypeof the event to log. | 
| args | : the map of arguments to be added to the log entry to get more details on the
     event. | 
registerLogger
public abstract void registerLogger (ILeveledLogOutput log)
Registers the logger as the instance to use for the current thread.
| Parameters | |
|---|---|
| log | ILeveledLogOutput | 
saveGlobalLog
public abstract void saveGlobalLog ()
Saves all the global loggers contents to tmp files.
setGlobalLogDisplayLevel
public abstract void setGlobalLogDisplayLevel (Log.LogLevel logLevel)
Set the log level display for the global log
| Parameters | |
|---|---|
| logLevel | Log.LogLevel: theLogLevelto use | 
unregisterLogger
public abstract void unregisterLogger ()
Unregisters the current logger in effect for the current thread.
