1 28 29 package com.caucho.log; 30 31 import com.caucho.config.ConfigException; 32 import com.caucho.config.types.Period; 33 import com.caucho.vfs.Path; 34 35 38 public class ErrorLog { 39 private LogConfig _logConfig = new LogConfig(); 40 public ErrorLog() 41 throws ConfigException 42 { 43 _logConfig.setName(""); 44 _logConfig.setLevel("info"); 45 _logConfig.setTimestamp("[%Y/%m/%d %H:%M:%S.%s] "); 46 } 47 48 51 public void setId(Path path) 52 { 53 _logConfig.setPath(path); 54 } 55 56 59 public void setTimestamp(String timestamp) 60 { 61 _logConfig.setTimestamp(timestamp); 62 } 63 64 67 public void setRolloverPeriod(Period period) 68 { 69 _logConfig.setRolloverPeriod(period); 70 } 71 72 75 public String getTagName() 76 { 77 return "error-log"; 78 } 79 } 80 81 | Popular Tags |