java - Best way to interact with application logs output from log4j (while also are being updated by application) -
java - Best way to interact with application logs output from log4j (while also are being updated by application) -
may simpler think confused on following:
i want able nowadays user (in graphical interface) logs produced log4j.
i read files , nowadays it, wondering if there standard way updates happen @ same time other parts of application log concurrently.
the log4j files multiple i.e. rolling appender
also presentation while there no logging happening. i.e. view of logs date
update: constraint java 6
you can utilize java 7's nio2 libraries notified when 1 of multiple files get's modified in directory, , reread & display it:
http://blogs.oracle.com/thejavatutorials/entry/watching_a_directory_for_changes
java multithreading file file-io log4j
Comments
Post a Comment