This repository contains several examples to help the user with some of the more advanced Log4j features.
log4j-samples-android
-
Explains how to use Log4j Core on Android.
log4j-samples-configuration
-
Explains how to use a custom programmatic configuration.
log4j-samples-flume-embedded
-
Explains how to use an embedded Flume agent to send logs to Apache Flume.
log4j-samples-flume-remote
-
Explains how to send logs to Apache Flume.
log4j-samples-graalvm
-
Explains how to use Log4j API and its implementation to create native GraalVM images.
log4j-samples-jlink
-
An example of JLink custom JRE.
log4j-samples-loggerProperties
-
Explains how to write a custom property lookup.
log4j-spring-cloud-config-sample-application
-
An example of Spring Boot application that reads its logging configuration from a Spring Cloud Configuration Server.
This project generates Java 8 bytecode, though requires Java 11 for compilation.
You can build and test sources using ./mvnw verify
command.
Please keep in mind that this project is intended for internal usage only. You can use GitHub Issues for feature requests and bug reports – not questions! See the Log4j support policy for details.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See NOTICE.txt distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.