|
64 | 64 | * specified default values are used.
|
65 | 65 | *
|
66 | 66 | * <ul>
|
67 |
| - * <li>{@code com.google.cloud.logging.LoggingHandler.log} the log name (defaults to {@code |
68 |
| - * java.log}). |
69 |
| - * <li>{@code com.google.cloud.logging.LoggingHandler.level} specifies the default level for the |
70 |
| - * handler (defaults to {@code Level.INFO}). |
71 |
| - * <li>{@code com.google.cloud.logging.LoggingHandler.filter} specifies the name of a {@link |
72 |
| - * Filter} class to use (defaults to no filter). |
73 |
| - * <li>{@code com.google.cloud.logging.LoggingHandler.formatter} specifies the name of a {@link |
74 |
| - * Formatter} class to use (defaults to {@link SimpleFormatter}). |
75 |
| - * <li>{@code com.google.cloud.logging.LoggingHandler.flushSize} specifies the maximum size of the |
76 |
| - * log buffer. Once reached, logs are transmitted to the Stackdriver Logging service (defaults |
77 |
| - * to 1). |
78 |
| - * <li>{@code com.google.cloud.logging.LoggingHandler.flushLevel} specifies the flush log level. |
79 |
| - * When a log with this level is published, logs are transmitted to the Stackdriver Logging |
80 |
| - * service (defaults to {@link LoggingLevel#ERROR}). |
81 |
| - * <li>{@code com.google.cloud.logging.LoggingHandler.enhancers} specifies a comma separated list |
82 |
| - * of {@link Enhancer} classes. This handler will call each enhancer list whenever it builds a |
83 |
| - * {@link MonitoredResource} or {@link LogEntry} instance (defaults to empty list). |
84 |
| - * <li>{@code com.google.cloud.logging.LoggingHandler.resourceType} the type name to use when |
85 |
| - * creating the default {@link MonitoredResource} (defaults to "global"). |
86 |
| - * <li>{@code com.google.cloud.logging.WriteLogMethod} the type of write method to use to write |
87 |
| - * logs to the Stackdriver Logging service (defaults to {@link WriteLogMethod#ASYNC}). |
| 67 | + * <li>{@code com.google.cloud.logging.LoggingHandler.log} the log name (defaults to {@code |
| 68 | + * java.log}). |
| 69 | + * <li>{@code com.google.cloud.logging.LoggingHandler.level} specifies the default level for the |
| 70 | + * handler (defaults to {@code Level.INFO}). |
| 71 | + * <li>{@code com.google.cloud.logging.LoggingHandler.filter} specifies the name of a {@link |
| 72 | + * Filter} class to use (defaults to no filter). |
| 73 | + * <li>{@code com.google.cloud.logging.LoggingHandler.formatter} specifies the name of a {@link |
| 74 | + * Formatter} class to use (defaults to {@link SimpleFormatter}). |
| 75 | + * <li>{@code com.google.cloud.logging.LoggingHandler.flushSize} specifies the maximum size of the |
| 76 | + * log buffer. Once reached, logs are transmitted to the Stackdriver Logging service (defaults |
| 77 | + * to 1). |
| 78 | + * <li>{@code com.google.cloud.logging.LoggingHandler.flushLevel} specifies the flush log level. |
| 79 | + * When a log with this level is published, logs are transmitted to the Stackdriver Logging |
| 80 | + * service (defaults to {@link LoggingLevel#ERROR}). |
| 81 | + * <li>{@code com.google.cloud.logging.LoggingHandler.enhancers} specifies a comma separated list |
| 82 | + * of {@link Enhancer} classes. This handler will call each enhancer list whenever it builds a |
| 83 | + * {@link MonitoredResource} or {@link LogEntry} instance (defaults to empty list). |
| 84 | + * <li>{@code com.google.cloud.logging.LoggingHandler.resourceType} the type name to use when |
| 85 | + * creating the default {@link MonitoredResource} (defaults to "global"). |
| 86 | + * <li>{@code com.google.cloud.logging.WriteLogMethod} the type of write method to use to write |
| 87 | + * logs to the Stackdriver Logging service (defaults to {@link WriteLogMethod#ASYNC}). |
88 | 88 | * </ul>
|
89 | 89 | *
|
90 | 90 | * <p>To add a {@code LoggingHandler} to an existing {@link Logger} and be sure to avoid infinite
|
91 | 91 | * recursion when logging, use the {@link #addHandler(Logger, LoggingHandler)} method. Alternatively
|
92 | 92 | * you can add the handler via {@code logging.properties}. For example using the following line:
|
93 |
| - * |
94 | 93 | * <pre>
|
95 | 94 | * {@code com.example.mypackage.handlers=com.google.cloud.logging.LoggingHandler}
|
96 | 95 | * </pre>
|
|
0 commit comments