ERROR StatusLogger No log4j2 configuration file found


(sharon) #1

when i run a small java client to insert some data i get this error

"ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
"

I read questions here and did add a log4j2.xml into src/main/resources on my maven project and i still get the same error.

i also saw the elastic itself has a log4j.properties in the conf folder... why isnt it using this file?

what else can i do?

Thanks,
Sharon Gur


(David Pilato) #2

Unsure but here are some docs about what to do: https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_log4j_2_logger.html


(sharon) #3

ok i solved the problem thank you...
I created a folder with upper case Resource instead of lower case. silly me..


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.