Skip to content

Commit 7ba4868

Browse files
committed
Update format
1 parent a1cf94a commit 7ba4868

2 files changed

Lines changed: 14 additions & 21 deletions

File tree

google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,33 @@
5353
* <tr><td>FINEST</td><td>DEBUG</td></tr>
5454
* </table>
5555
*
56-
* <p>Original Java logging levels are added as labels (with {@code levelName} and {@code
57-
* levelValue} keys, respectively) to the corresponding Stackdriver Logging {@link LogEntry}. You
58-
* can read entry labels using {@link LogEntry#getLabels()}. To use logging levels that correspond
59-
* to Stackdriver Logging severities you can use {@link LoggingLevel}.
56+
* <p>Original Java logging levels are added as labels (with {@code levelName} and
57+
* {@code levelValue} keys, respectively) to the corresponding Stackdriver Logging {@link LogEntry}.
58+
* You can read entry labels using {@link LogEntry#getLabels()}. To use logging levels that
59+
* correspond to Stackdriver Logging severities you can use {@link LoggingLevel}.
6060
*
6161
* <p><b>Configuration</b>: By default each {@code LoggingHandler} is initialized using the
62-
* following {@code LogManager} configuration properties (that you can set in the {@code
63-
* logging.properties} file). If properties are not defined (or have invalid values) then the
62+
* following {@code LogManager} configuration properties (that you can set in the
63+
* {@code logging.properties} file). If properties are not defined (or have invalid values) then the
6464
* specified default values are used.
65-
*
6665
* <ul>
67-
* <li>{@code com.google.cloud.logging.LoggingHandler.log} the log name (defaults to {@code
68-
* java.log}).
66+
* <li>{@code com.google.cloud.logging.LoggingHandler.log} the log name (defaults to
67+
* {@code java.log}).
6968
* <li>{@code com.google.cloud.logging.LoggingHandler.level} specifies the default level for the
7069
* 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}).
70+
* <li>{@code com.google.cloud.logging.LoggingHandler.filter} specifies the name of a {@link Filter}
71+
* class to use (defaults to no filter).
72+
* <li>{@code com.google.cloud.logging.LoggingHandler.formatter} specifies the name of a
73+
* {@link Formatter} class to use (defaults to {@link SimpleFormatter}).
7574
* <li>{@code com.google.cloud.logging.LoggingHandler.flushSize} specifies the maximum size of the
7675
* log buffer. Once reached, logs are transmitted to the Stackdriver Logging service (defaults
7776
* to 1).
7877
* <li>{@code com.google.cloud.logging.LoggingHandler.flushLevel} specifies the flush log level.
7978
* When a log with this level is published, logs are transmitted to the Stackdriver Logging
8079
* service (defaults to {@link LoggingLevel#ERROR}).
8180
* <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).
81+
* of {@link Enhancer} classes. This handler will call each enhancer list whenever it builds
82+
* a {@link MonitoredResource} or {@link LogEntry} instance (defaults to empty list).
8483
* <li>{@code com.google.cloud.logging.LoggingHandler.resourceType} the type name to use when
8584
* creating the default {@link MonitoredResource} (defaults to "global").
8685
* <li>{@code com.google.cloud.logging.Synchronicity} the synchronicity of the write method to use

google-cloud-logging/src/test/java/com/google/cloud/logging/LoggingHandlerTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,11 @@
2424
import com.google.common.collect.ImmutableList;
2525
import com.google.common.collect.ImmutableMap;
2626

27-
import java.io.ByteArrayInputStream;
28-
import java.io.FileInputStream;
29-
import java.io.IOException;
30-
import java.io.StringBufferInputStream;
31-
import java.io.StringReader;
3227
import java.util.Collections;
3328
import java.util.logging.ErrorManager;
3429
import java.util.logging.Formatter;
3530
import java.util.logging.Handler;
3631
import java.util.logging.Level;
37-
import java.util.logging.LogManager;
3832
import java.util.logging.LogRecord;
3933
import java.util.logging.Logger;
4034
import org.easymock.EasyMock;

0 commit comments

Comments
 (0)