Public Member Functions | Private Attributes | List of all members
com.google.protobuf.TestUtil.TestLogHandler Class Reference
Inheritance diagram for com.google.protobuf.TestUtil.TestLogHandler:
Inheritance graph
[legend]

Public Member Functions

void close ()
 
void flush ()
 
synchronized List< LogRecord > getStoredLogRecords ()
 
synchronized void publish (LogRecord record)
 

Private Attributes

final List< LogRecord > list = new ArrayList<>()
 

Detailed Description

Helper class to test logged messages

Definition at line 3866 of file core/src/test/java/com/google/protobuf/TestUtil.java.

Member Function Documentation

◆ close()

void com.google.protobuf.TestUtil.TestLogHandler.close ( )
inline

◆ flush()

void com.google.protobuf.TestUtil.TestLogHandler.flush ( )
inline

◆ getStoredLogRecords()

synchronized List<LogRecord> com.google.protobuf.TestUtil.TestLogHandler.getStoredLogRecords ( )
inline

Returns a snapshot of the logged records.

Definition at line 3883 of file core/src/test/java/com/google/protobuf/TestUtil.java.

◆ publish()

synchronized void com.google.protobuf.TestUtil.TestLogHandler.publish ( LogRecord  record)
inline

Adds the most recently logged record to our list.

Definition at line 3872 of file core/src/test/java/com/google/protobuf/TestUtil.java.

Member Data Documentation

◆ list

final List<LogRecord> com.google.protobuf.TestUtil.TestLogHandler.list = new ArrayList<>()
private

We will keep a private list of all logged records

Definition at line 3868 of file core/src/test/java/com/google/protobuf/TestUtil.java.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07