File tree 4 files changed +8
-8
lines changed
java/com/example/logging/jul
java/com/example/logging/logback 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package com .example .logging .jul ;
18
18
19
- // [START jul_quickstart ]
19
+ // [START logging_jul_quickstart ]
20
20
21
21
import java .util .logging .Logger ;
22
22
@@ -28,4 +28,4 @@ public static void main(String[] args) {
28
28
logger .severe ("Logging ERROR with java.util.logging" );
29
29
}
30
30
}
31
- // [END jul_quickstart ]
31
+ // [END logging_jul_quickstart ]
Original file line number Diff line number Diff line change 15
15
16
16
# A default java.util.logging configuration.
17
17
#
18
- # [START jul_config ]
18
+ # [START logging_jul_config ]
19
19
# To use this configuration, add to system properties : -Djava.util.logging.config.file="/path/to/file"
20
20
#
21
21
.level = INFO
@@ -44,4 +44,4 @@ java.util.logging.SimpleFormatter.format=%3$s: %5$s%6$s
44
44
45
45
# optional enhancers (to add additional fields, labels)
46
46
com.google.cloud.logging.LoggingHandler.enhancers =com.example.logging.jul.enhancers.ExampleEnhancer
47
- # [END jul_config ]
47
+ # [END logging_jul_config ]
Original file line number Diff line number Diff line change 16
16
17
17
package com .example .logging .logback ;
18
18
19
- // [START logback_quickstart ]
19
+ // [START logging_logback_quickstart ]
20
20
21
21
import org .slf4j .Logger ;
22
22
import org .slf4j .LoggerFactory ;
@@ -29,4 +29,4 @@ public static void main(String[] args) {
29
29
logger .error ("Logging ERROR with Logback" );
30
30
}
31
31
}
32
- // [END logback_quickstart ]
32
+ // [END logging_logback_quickstart ]
Original file line number Diff line number Diff line change 13
13
See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
-->
16
- <!-- [START logback_config ] -->
16
+ <!-- [START logging_logback_config ] -->
17
17
<configuration >
18
18
<appender name =" CLOUD" class =" com.google.cloud.logging.logback.LoggingAppender" >
19
19
<!-- Optional : filter logs at or above a level -->
30
30
<appender-ref ref =" CLOUD" />
31
31
</root >
32
32
</configuration >
33
- <!-- [END logback_config ] -->
33
+ <!-- [END logging_logback_config ] -->
You can’t perform that action at this time.
0 commit comments