Query - how to seperate Logging in Spring based Java application based on Locale/Country code ?
For example - consider an Java web application which caters to multilingual website (let us say - supporting five languages - EN, CH, FR, DE, ES). Now, in my Java code, all log messages are going to same single log file.
Problem is - it is difficult to track/analyze country specific log file for analysis.
I want a behaviour that if any user of EN locale is logged in application, then, all activity he does on website get logged in seperate log file (say - en_webLogs.log), if any user of FR locale is logged in application, then, all activity he does on website get logged in seperate log file (say - fr_webLogs.log). So on and so forth.
Basically, seperate log file for each Locale. Please note that I want log messages in English language in all country logs. No language change there. Only depending upon which Locale User chose or belongs to , his activity need to track to his Locale specific logs.
I tried to search on google but could not find any solution.
So I have turned toward this forum to find solution.
Oracle certified JPA Developer (1Z0-898),Oracle certified Java 8 Programmer I (1Z0-808), Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I, CIW Certified Ecommerce specialist