[[["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-07 UTC."],[],[],null,["# Class ContextCaptureInitializer (0.2.13-alpha)\n\nVersion latestkeyboard_arrow_down\n\n- [0.2.13-alpha (latest)](/java/docs/reference/google-cloud-logging-servlet-initializer/latest/com.google.cloud.logging.servlet.ContextCaptureInitializer)\n- [0.2.12-alpha](/java/docs/reference/google-cloud-logging-servlet-initializer/0.2.12-alpha/com.google.cloud.logging.servlet.ContextCaptureInitializer)\n- [0.1.16-alpha](/java/docs/reference/google-cloud-logging-servlet-initializer/0.1.16-alpha/com.google.cloud.logging.servlet.ContextCaptureInitializer) \n\n public class ContextCaptureInitializer implements ServletContainerInitializer\n\nInheritance\n-----------\n\njava.lang.Object \\\u003e ContextCaptureInitializer \n\nImplements\n----------\n\n[ServletContainerInitializer](https://docs.oracle.com/javase/8/docs/api/javax/servlet/ServletContainerInitializer.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### ContextCaptureInitializer()\n\n public ContextCaptureInitializer()\n\nMethods\n-------\n\n### onStartup(Set\\\u003cClass\\\u003c?\\\u003e\\\u003e c, ServletContext ctx)\n\n public void onStartup(Set\u003cClass\u003c?\u003e\u003e c, ServletContext ctx)\n\n**Parameters**\n\n**Exceptions**"]]