Fix bug [2832350] Enabling trace log file create one file per line in /tmp

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2832350
This commit is contained in:
Carlos Ruiz 2010-03-11 19:58:32 +00:00
parent 2ce294bb10
commit bdc810b343
1 changed files with 4 additions and 2 deletions

View File

@ -175,8 +175,10 @@ public class CLogFile extends Handler
} }
} }
} }
if (m_file == null) // Fallback create temp file if (m_file == null) { // Fallback create temp file
m_file = File.createTempFile("adempiere", ".log"); m_fileNameDate = getFileNameDate(System.currentTimeMillis());
m_file = File.createTempFile("adempiere"+m_fileNameDate + "_", ".log");
}
} }
catch (Exception ex) catch (Exception ex)
{ {