no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package Common.Utils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Utils;
|
||||
|
||||
import java.io.File;
|
||||
@@ -23,7 +23,7 @@ public interface Loggable {
|
||||
default void Print(String message) {
|
||||
try {
|
||||
FileWriter Log = new FileWriter(getLogFile(), true);
|
||||
String datedMessage = CommonUtils.Brackets(new Date()) + " " + message;
|
||||
String datedMessage = Utils_.Brackets(new Date()) + " " + message;
|
||||
Log.write(datedMessage + "\n");
|
||||
Log.close();
|
||||
} catch (Exception ignored) {
|
||||
@@ -35,8 +35,8 @@ public interface Loggable {
|
||||
ex.printStackTrace(writer);
|
||||
writer.flush();
|
||||
Print(out.toString());
|
||||
if (CommonUI.isActive())
|
||||
CommonUI.Error("Возникло исключение. Подробности в файле журнала\n" +
|
||||
CommonUtils.Brackets(getLogFile().getAbsolutePath()));
|
||||
if (UI_.isActive())
|
||||
UI_.Error("Возникло исключение. Подробности в файле журнала\n" +
|
||||
Utils_.Brackets(getLogFile().getAbsolutePath()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user