1 28 29 package com.caucho.config.core; 30 31 import com.caucho.util.CharBuffer; 32 import com.caucho.util.L10N; 33 34 import javax.annotation.PostConstruct; 35 import java.util.logging.Logger ; 36 37 40 public class ResinLog { 41 private static L10N L = new L10N(ResinLog.class); 42 43 private String _name = "com.caucho.config.core.ResinLog"; 44 private CharBuffer _text = new CharBuffer(); 45 46 49 public void setName(String name) 50 { 51 _name = name; 52 } 53 54 57 public void addText(String text) 58 { 59 _text.append(text); 60 } 61 62 65 @PostConstruct 66 public void init() 67 { 68 Logger log = Logger.getLogger(_name); 69 70 log.info(_text.toString()); 71 } 72 } 73 74 | Popular Tags |