Od 27 marca 2025 r. zalecamy używanie android-latest-release zamiast aosp-main do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
  
         
       
     
  
  
  
    
  
  
  
    
    
      
    
    
      
      Zadbaj o dobrą organizację dzięki kolekcji
    
    
      
      Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
    
  
  
    
  
  
  
  
    
  
  
    
    
    
  
  
BaseStreamLogger
  public
  
  
  abstract
  class
  BaseStreamLogger
  
  
  
  
    extends BaseLeveledLogOutput
  
  
  
  
  
  
  
    
      | 
          Znane bezpośrednie podklasy
          
  
  
         | 
  
  
  
  
    
      | 
          Znane podklasy pośrednie
          
  
  
    
  
  
    
      
        | HistoryLogger | TF History Logger, specjalny dziennik zawierający tylko niektóre konkretne zdarzenia. |  | 
  
    
  ILeveledLogOutput, który kieruje komunikaty dziennika do strumienia wyjściowego i stdout.
Podsumowanie
| Chronione metody | 
|---|
  
  
  
    | 
        
        
        
        
        
        void | 
      writeToLog(String message)
      Zapisuje wiadomość w strumieniu wyjściowym.
        
    
 | 
  
Fieldsem
    mOutputStream
    
      
  
      
  
    
protected OS extends OutputStream mOutputStream
    
    
    
  
    
 
Konstruktory publiczne
    BaseStreamLogger
    
public BaseStreamLogger ()
    
    
    
  
 
Metody publiczne
    closeLog
    
public void closeLog ()
    
    
    
  
 
    getLogLevelDisplay
    
public Log.LogLevel getLogLevelDisplay ()
    
    
    
  
    
 
    printAndPromptLog
    
public void printAndPromptLog (Log.LogLevel logLevel, 
                String tag, 
                String message)
    
    
    
  
    
    | Parametry | 
|---|
      
        | logLevel | Log.LogLevel | 
      
        | tag | String | 
      
        | message | String | 
    
 
    printLog
    
public void printLog (Log.LogLevel logLevel, 
                String tag, 
                String message)
    
    
    
  
    
    | Parametry | 
|---|
      
        | logLevel | Log.LogLevel | 
      
        | tag | String | 
      
        | message | String | 
    
 
    setLogLevel
    
public void setLogLevel (Log.LogLevel logLevel)
    
    
    
  
    
    | Parametry | 
|---|
      
        | logLevel | Log.LogLevel | 
    
 
    setLogLevelDisplay
    
public void setLogLevelDisplay (Log.LogLevel logLevel)
    
    
    
  Zgodność
    
    | Parametry | 
|---|
      
        | logLevel | Log.LogLevel | 
    
 
    setLogLevelDisplay
    
public void setLogLevelDisplay (Log.LogLevel logLevel)
    
    
    
  Ustawia minimalną wartość LogLevel do wyświetlania na wyjściu standardowym.
    
    | Parametry | 
|---|
      
        | logLevel | Log.LogLevel | 
    
 
Chronione metody
    writeToLog
    
protected void writeToLog (String message)
    
    
    
  Zapisuje wiadomość w strumieniu wyjściowym.
    
    | Parametry | 
|---|
      
        | message | String: wpis do zapisania w logu | 
    
      
      | Rzuty | 
|---|
        
          |  | jeśli wystąpi błąd wejścia/wyjścia. | 
      
  
 
 
 
  
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
  Ostatnia aktualizacja: 2025-07-27 UTC.
  
  
  
    
      [[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[]]