Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package utils;
- import java.io.IOException;
- public class ShutdownHandler extends Thread {
- @Override
- public void run() {
- try {
- ResourceLogger.getInstance().writeLogToFile();
- } catch (IOException e) {
- System.out.println("Failed to write log to file.");
- }
- super.run();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement