daily pastebin goal
53%
SHARE
TWEET

FileLogger class

a guest Aug 20th, 2016 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class FileLogger extends DelegateLogger {
  2.  
  3.     private File file;
  4.  
  5.     public FileLogger(File file) {
  6.        super();
  7.        this.file = file;
  8.     }
  9.  
  10.     public FileLogger(File file, Logger delegate) {
  11.        super(delegate);
  12.         this.file = file;
  13.     }
  14.  
  15.     @Override
  16.     public void log(String log) {
  17.         // log to file
  18.         this.delegateLog(log);
  19.     }
  20.  
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top