private static void initLogFile ( ) { try ( BufferedWriter bw = new BufferedWriter ( new FileWriter ( getLogPath ( ) ) ) ) { Date date = new Date ( ) ; bw . write ( "LT office integration log from " + date . toString ( ) + logLineBreak ) ; } catch ( Throwable t ) { showError ( t ) ; } }
Initialize log - file