Spring boot log Format JSON
I want capture log from standard out using FluentD but i will found format log isn’t work !
เปลี่ยน log springboot ให้ออกเป็น JSON อย่างง่าย
I want use JSON Format from spring boot app so , “Easy Solution” i will show you how to Convert STOUT Log format Json
basically application log out format

TO

1 Create New Spring Project at start.spirng.io

2. Import Project with IDE
3. Add Dependency in “pom.xml” into project
4.Create new File “logback-spring.xml” in resources

5.Run Again with mvn command
> mvn spirng-boot:run

ตัวอย่างการนำไปใช้ Example
Create Controller Import Log4j

Call http://localhost:8080/ and see console again

for more information you can see this & Special Thank
Full Source Project







