1 | public File getExecutionLogFile()↵ | | 1 | public File getJDBCDebugLogFile()↵
|
2 | {↵ | | 2 | {↵
|
3 | final String dirPath = _userSettingsDir + File.separator + "logs";↵ | | 3 | final String dirPath = _userSettingsDir + File.separator + "logs";↵
|
4 | final String logBaseName = "squirrel-sql.log";↵ | | 4 | final String logBaseName = "jdbcdebug.log";↵
|
|
5 | if (needExecutionLogCleanup) {↵ | | 5 | if (needDebugLogCleanup) {↵
|
6 | // first time through this method in program, so go cleanup↵ | | 6 | // first time through this method in program, so go cleanup↵
|
7 | // old log files↵ | | 7 | // old log files↵
|
8 | deleteOldFiles(dirPath, logBaseName);↵ | | 8 | deleteOldFiles(dirPath, logBaseName);↵
|
9 | needExecutionLogCleanup = false;↵ | | 9 | needDebugLogCleanup = false;↵
|
10 | }↵ | | 10 | }↵
|
11 | return new File(dirPath + File.separator + logBaseName);↵ | | 11 | return new File(dirPath + File.separator + logBaseName);↵
|
12 | | | 12 |
|