shinshin wrote:I understood, but is there the option to change permmision into the logger class ?
No. There are File::setWritable() and File::setReadOnly(), but they are (1) not asccessible through Logging package interface and (2) platform-independent, hence quite coarse (for example, on POSIX, they bulk-operate on all three r/w flags - user, group and everyone)
shinshin wrote:Even if the 'umask' is used, is it OK to lotate log?
umask operates on the process level. Of course, you could shoot yourself in the foot by e.g. setting file read only and try to purge it later.
If anyone would be willing to look into (a)
making permissions more fine-grained (while retaining platform independence) and possibly (b)
adding a "permissions" property to FileChannel, it could be a nice contribution. Check this page
for description and code.