File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
java/com/example/logging/jul
java/com/example/logging/logback Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1616
1717package com .example .logging .jul ;
1818
19- // [START jul_quickstart ]
19+ // [START logging_jul_quickstart ]
2020
2121import java .util .logging .Logger ;
2222
@@ -28,4 +28,4 @@ public static void main(String[] args) {
2828 logger .severe ("Logging ERROR with java.util.logging" );
2929 }
3030}
31- // [END jul_quickstart ]
31+ // [END logging_jul_quickstart ]
Original file line number Diff line number Diff line change 1515
1616# A default java.util.logging configuration.
1717#
18- # [START jul_config ]
18+ # [START logging_jul_config ]
1919# To use this configuration, add to system properties : -Djava.util.logging.config.file="/path/to/file"
2020#
2121.level = INFO
@@ -44,4 +44,4 @@ java.util.logging.SimpleFormatter.format=%3$s: %5$s%6$s
4444
4545# optional enhancers (to add additional fields, labels)
4646com.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 1616
1717package com .example .logging .logback ;
1818
19- // [START logback_quickstart ]
19+ // [START logging_logback_quickstart ]
2020
2121import org .slf4j .Logger ;
2222import org .slf4j .LoggerFactory ;
@@ -29,4 +29,4 @@ public static void main(String[] args) {
2929 logger .error ("Logging ERROR with Logback" );
3030 }
3131}
32- // [END logback_quickstart ]
32+ // [END logging_logback_quickstart ]
Original file line number Diff line number Diff line change 1313 See the License for the specific language governing permissions and
1414 limitations under the License.
1515-->
16- <!-- [START logback_config ] -->
16+ <!-- [START logging_logback_config ] -->
1717<configuration >
1818 <appender name =" CLOUD" class =" com.google.cloud.logging.logback.LoggingAppender" >
1919 <!-- Optional : filter logs at or above a level -->
3030 <appender-ref ref =" CLOUD" />
3131 </root >
3232</configuration >
33- <!-- [END logback_config ] -->
33+ <!-- [END logging_logback_config ] -->
You can’t perform that action at this time.
0 commit comments