Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclassAppLogLineimplementsSerializable
An AppLogLine contains all the information for a single application
log. Specifically, this information is: (1) the time at which the logged
event occurred, (2) the level that the event was logged at, and (3) the
message associated with this event. AppLogLines may be inserted by the user
via logging frameworks, or by App Engine itself if we wish to alert the user
that certain events have occurred.
[[["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-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eAppLogLine\u003c/code\u003e is a class that holds information about a single application log event.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eAppLogLine\u003c/code\u003e includes the time of the event, the log level, and the message associated with it.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAppLogLine\u003c/code\u003e class is serializable and inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to get and set the time, log level, and log message of the logged event.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAppLogLine\u003c/code\u003e class also has implemented methods such as \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class AppLogLine (2.0.0)\n\n public final class AppLogLine implements Serializable\n\nAn AppLogLine contains all the information for a single application\nlog. Specifically, this information is: (1) the time at which the logged\nevent occurred, (2) the level that the event was logged at, and (3) the\nmessage associated with this event. AppLogLines may be inserted by the user\nvia logging frameworks, or by App Engine itself if we wish to alert the user\nthat certain events have occurred. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e AppLogLine \n\nImplements\n----------\n\n[Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html) \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\nConstructors\n------------\n\n### AppLogLine()\n\n public AppLogLine()\n\nDefault zero-argument constructor that creates an AppLogLine.\n\nMethods\n-------\n\n### equals(@Nullable Object obj)\n\n public boolean equals(@Nullable Object obj)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getLogLevel()\n\n public LogService.LogLevel getLogLevel()\n\n### getLogMessage()\n\n public String getLogMessage()\n\n### getTimeUsec()\n\n public long getTimeUsec()\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### setLogLevel(LogService.LogLevel logLevel)\n\n public void setLogLevel(LogService.LogLevel logLevel)\n\n### setLogMessage(String logMessage)\n\n public void setLogMessage(String logMessage)\n\n### setTimeUsec(long timeUsec)\n\n public void setTimeUsec(long timeUsec)\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)"]]