[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class LogRecordingHandler (2.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0 (latest)](/java/docs/reference/google-http-client/latest/com.google.api.client.testing.util.LogRecordingHandler)\n- [1.47.1](/java/docs/reference/google-http-client/1.47.1/com.google.api.client.testing.util.LogRecordingHandler)\n- [1.46.3](/java/docs/reference/google-http-client/1.46.3/com.google.api.client.testing.util.LogRecordingHandler)\n- [1.45.3](/java/docs/reference/google-http-client/1.45.3/com.google.api.client.testing.util.LogRecordingHandler)\n- [1.44.2](/java/docs/reference/google-http-client/1.44.2/com.google.api.client.testing.util.LogRecordingHandler)\n- [1.43.2](/java/docs/reference/google-http-client/1.43.2/com.google.api.client.testing.util.LogRecordingHandler)\n- [1.42.3](/java/docs/reference/google-http-client/1.42.3/com.google.api.client.testing.util.LogRecordingHandler)\n- [1.41.8](/java/docs/reference/google-http-client/1.41.8/com.google.api.client.testing.util.LogRecordingHandler) \n\n public class LogRecordingHandler extends Handler\n\n[Beta](/java/docs/reference/google-http-client/latest/com.google.api.client.util.Beta) \n\nLogging handler that stores log records. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e [Handler](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html) \\\u003e LogRecordingHandler \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-) \n[Handler.close()](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#close--) \n[Handler.flush()](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#flush--) \n[Handler.getEncoding()](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#getEncoding--) \n[Handler.getErrorManager()](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#getErrorManager--) \n[Handler.getFilter()](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#getFilter--) \n[Handler.getFormatter()](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#getFormatter--) \n[Handler.getLevel()](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#getLevel--) \n[Handler.isLoggable(LogRecord)](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#isLoggable-java.util.logging.LogRecord-) \n[Handler.publish(LogRecord)](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#publish-java.util.logging.LogRecord-) \n[Handler.reportError(String,Exception,int)](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#reportError-java.lang.String-java.lang.Exception-int-) \n[Handler.setEncoding(String)](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#setEncoding-java.lang.String-) \n[Handler.setErrorManager(ErrorManager)](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#setErrorManager-java.util.logging.ErrorManager-) \n[Handler.setFilter(Filter)](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#setFilter-java.util.logging.Filter-) \n[Handler.setFormatter(Formatter)](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#setFormatter-java.util.logging.Formatter-) \n[Handler.setLevel(Level)](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#setLevel-java.util.logging.Level-)\n\nConstructors\n------------\n\n### LogRecordingHandler()\n\n public LogRecordingHandler()\n\nMethods\n-------\n\n### close()\n\n public void close()\n\n**Overrides** \n[Handler.close()](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#close--)\n\n### flush()\n\n public void flush()\n\n**Overrides** \n[Handler.flush()](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#flush--)\n\n### messages()\n\n public List\u003cString\u003e messages()\n\nReturns a new instance of a list of published record messages.\n\n### publish(LogRecord record)\n\n public void publish(LogRecord record)\n\n**Overrides** \n[Handler.publish(LogRecord)](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html#publish-java.util.logging.LogRecord-)"]]