I am new to logging,
In my project we are starting to log the flow of project. from starting to end of the execution. we used simple write operations to log.
File,FileOutputStream
But i have seen tools like log4j,slf4j...etc im in a confusion what to use and how to use. I have seen many examples , but notthing matched my requirement . which led to post a question here.
Q1) Which is the best log tool ? (we need to log nearly 1000 lines per day)
Q2) In the present project we are creating(with code) a new folder every day , and logging in that by using File,FileOutputStream,SimpleDateFormat...etc
Q3)Many configuration files give log file path hard coded.
example : org.slf4j.simpleLogger.logFile= /tmp/myapp.log
But in my project we need to create new folder every day.
like, path should be /tmp/20150419/myapp.log
20150419 is today's date.
and tomorrow log should be in 20150420
Is this possible ?
Please clarify , i will be thankful to you .