@Override
public int doStartTag() throws PageException {
railo.commons.io.log.Log logger;
Config config =pageContext.getConfig();
if(file==null) {
if(log==LOG_SCHEDULER)logger=config.getScheduleLogger();
else if(log==LOG_CONSOLE)logger=LogConsole.getInstance(config, railo.commons.io.log.Log.LEVEL_INFO);
else logger=config.getApplicationLogger();
}
else {
if(charset==null) charset=pageContext.getConfig().getResourceCharset();
Resource logDir=config.getConfigDir().getRealResource("logs");
if(!logDir.exists())logDir.mkdirs();
try {
Resource f = logDir.getRealResource(file);
logger=new LogResource(f,railo.commons.io.log.Log.LEVEL_INFO,charset);
} catch (IOException e) {