Mega Code Archive

 
Categories / Java / Language Basics
 

The Patterns in FileHandler

Expression       Meaning /                The path separator of the local OS %t               A directory suitable for storing temporary logging files, such as the temp directory of the OS %h               A directory such as the "user.home" location, which is suitable to store user-specific data in the system %g               A log generation number to rotate log files %u               A number to make a log file unique to avoid any conflicts %%               A literal percent sign