/** * Returns the log for the selected object.<p> * * If the provided object is a String, this String will * be used as channel name. Otherwise the objects * class name will be used as channel name.<p> * * @param obj the object channel to use * @return the log for the selected object channel */ public static Log getLog(Object obj) { return CmsLog.getLog(obj); }
/** * Returns the filename of the log file (in the "real" file system).<p> * * If the method returns <code>null</code>, this means that the log * file is not managed by OpenCms.<p> * * @return the filename of the log file (in the "real" file system) */ public String getLogFileRfsPath() { return CmsLog.getLogFileRfsPath(); }
/** * Represents the visibility status of a resource type in the 'Add' menu of the container page editor.<p> */ public enum AddMenuVisibility { /** Type not visible. */ disabled, /** Type does not belong to current view, but has been configured to be still visible in it. */ fromOtherView, /** Type is normally visible. */ visible }
/** * Returns the filename of the log file (in the "real" file system).<p> * * If the method returns <code>null</code>, this means that the log * file is not managed by OpenCms.<p> * * @return the filename of the log file (in the "real" file system) */ public String getLogFileRfsPath() { return CmsLog.getLogFileRfsPath(); }
/** * Returns the log for the selected object.<p> * * If the provided object is a String, this String will * be used as channel name. Otherwise the objects * class name will be used as channel name.<p> * * @param obj the object channel to use * @return the log for the selected object channel */ public static Log getLog(Object obj) { return CmsLog.getLog(obj); }
private static final Log LOG = CmsLog.getLog(CmsSecurityManager.class);
private static final Log LOG = CmsLog.getLog(CmsSecurityManager.class);
/** * @see org.opencms.report.I_CmsReport#println(java.lang.Throwable) */ public synchronized void println(Throwable t) { if (CmsLog.getLog(m_channel).isInfoEnabled()) { StringBuffer message = new StringBuffer(); message.append(getMessages().key(Messages.RPT_EXCEPTION_0)); message.append(t.getMessage()); m_buffer.append(message); addError(message.toString()); CmsLog.getLog(m_channel).info(m_buffer.toString(), t); } m_buffer = new StringBuffer(); setLastEntryTime(System.currentTimeMillis()); } }
/** * @see org.opencms.report.I_CmsReport#println(java.lang.Throwable) */ public synchronized void println(Throwable t) { if (CmsLog.getLog(m_clazz).isInfoEnabled()) { StringBuffer message = new StringBuffer(); message.append(getMessages().key(Messages.RPT_EXCEPTION_0)); message.append(t.getMessage()); m_buffer.append(message); addError(message.toString()); CmsLog.getLog(m_clazz).info(m_buffer.toString(), t); } m_buffer = new StringBuffer(); setLastEntryTime(System.currentTimeMillis()); } }
private static final Log LOG = CmsLog.getLog(CmsLanguageCopySelectionList.class);
/** * Set the associated digester.<p> * * The digester gets assigned to use the OpenCms conform logging * * If needed, this class loads the parameter classes from their names.<p> * * @param aDigester the associated digester to set */ @Override public void setDigester(Digester aDigester) { aDigester.setLogger(CmsLog.getLog(aDigester.getClass())); // call superclass super.setDigester(aDigester); }
/** * Set the associated digester.<p> * * The digester gets assigned to use the OpenCms conform logging * * If needed, this class loads the parameter classes from their names.<p> * * @param aDigester the associated digester to set */ @Override public void setDigester(Digester aDigester) { aDigester.setLogger(CmsLog.getLog(aDigester.getClass())); // call superclass super.setDigester(aDigester); }
/** * @see org.xhtmlrenderer.util.XRLogger#log(java.lang.String, java.util.logging.Level, java.lang.String) */ public void log(String where, Level level, String msg) { Log log = CmsLog.getLog(getLoggerName(where)); sendMessageToLogger(level, msg, log, null); }
/** * @see org.xhtmlrenderer.util.XRLogger#log(java.lang.String, java.util.logging.Level, java.lang.String, java.lang.Throwable) */ public void log(String where, Level level, String msg, Throwable th) { Log log = CmsLog.getLog(getLoggerName(where)); sendMessageToLogger(level, msg, log, th); }
/** The available module export modes. */ public enum ExportMode { /** Default export mode. */ DEFAULT, /** Reduced export, that omits last modification information (dates and users). */ REDUCED; /** * @see java.lang.Enum#toString() */ @Override public String toString() { return super.toString().toLowerCase(); } }
private final Log LOGG = CmsLog.getLog(CmsTemplateMenu.class);
/** * Writes the XML configuration for the provided configuration class.<p> * * @param clazz the configuration class to write the XML for */ protected void writeConfiguration(Class<?> clazz) { // exception handling is provided here to ensure identical log messages try { m_configurationManager.writeConfiguration(clazz); } catch (IOException e) { CmsLog.getLog(CmsConfigurationManager.class).error( Messages.get().getBundle().key(Messages.LOG_ERROR_WRITING_CONFIG_1, clazz.getName()), e); } catch (CmsConfigurationException e) { CmsLog.getLog(CmsConfigurationManager.class).error( Messages.get().getBundle().key(Messages.LOG_ERROR_WRITING_CONFIG_1, clazz.getName()), e); } }
/** * Writes the XML configuration for the provided configuration class.<p> * * @param clazz the configuration class to write the XML for */ protected void writeConfiguration(Class clazz) { // exception handling is provided here to ensure identical log messages try { m_configurationManager.writeConfiguration(clazz); } catch (IOException e) { CmsLog.getLog(CmsConfigurationManager.class).error( Messages.get().getBundle().key(Messages.LOG_ERROR_WRITING_CONFIG_1, clazz.getName()), e); } catch (CmsConfigurationException e) { CmsLog.getLog(CmsConfigurationManager.class).error( Messages.get().getBundle().key(Messages.LOG_ERROR_WRITING_CONFIG_1, clazz.getName()), e); } }