Examples of Logger


Examples of org.jzonic.jlo.Logger

        TestSuite suite = new TestSuite(JDBCHandlerTest.class);
        return suite;
    }

    public void testLog() {
        Logger logger = LogManager.getLogger("org.jzonic.sql","db");
        logger.info("Hello wolrd");
    }

Examples of org.modeshape.common.logging.Logger

    @Override
    public void start() {
        if (!printedLocation && System.getProperty(JBOSS_SERVER_DATA_DIR) == null) {
            // We're not running in JBoss AS (where we always specify the directory where the binaries are stored),
            // so log where the temporary directory is ...
            Logger logger = Logger.getLogger(getClass());
            logger.debug("ModeShape repositories will use the following directory for transient storage of binary values unless repository configurations specify otherwise: {0}",
                         getDirectory().getAbsolutePath());
            printedLocation = true;
        }
        super.start();
    }

Examples of org.mortbay.log.Logger

    }

    public MBeanContainer(MBeanServer server)
    {
        this._server = server;
        Logger log = Log.getLog();
        if (log!=null)
            addBean(log);
    }

Examples of org.objectweb.howl.log.Logger

        setMaxBlocksPerFile(maxBlocksPerFile);
        setMaxBuffers(maxBuffers);
        setMaxLogFiles(maxLogFiles);
        setMinBuffers(minBuffers);
        setThreadsWaitingForceThreshold(threadsWaitingForceThreshold);
        this.logger = new Logger(configuration);
    }

Examples of org.objectweb.util.monolog.api.Logger

      if (file.exists()) {
        long period = getLong(LogMonitoringTimerTask.MONITORING_CONFIG_PERIOD_PROPERTY,
                              LogMonitoringTimerTask.DEFAULT_MONITORING_CONFIG_PERIOD).longValue();       
        String logname = getProperty(LogMonitoringTimerTask.MONITORING_RESULT_LOGGER_PROPERTY,
                                     LogMonitoringTimerTask.DEFAULT_MONITORING_RESULT_LOGGER);
        Logger logger = Debug.getLogger(logname);
        int loglevel = getInteger(LogMonitoringTimerTask.MONITORING_RESULT_LEVEL_PROPERTY,
                                  LogMonitoringTimerTask.DEFAULT_MONITORING_RESULT_LEVEL).intValue();
        String logmsg = getProperty(LogMonitoringTimerTask.MONITORING_RESULT_MESSAGE_PROPERTY,
                                    LogMonitoringTimerTask.DEFAULT_MONITORING_RESULT_MESSAGE);
       

Examples of org.objectweb.util.monolog.wrapper.javaLog.Logger

        name = monoLoggerName(name);
        // Search if the logger already exist.
        Object o = manager.getLogger(name);
        if (o == null) {
            // It doesn't exist => creates and adds it
            Logger result = new Logger(name, resName);
            manager.addLogger(result);
            Monolog.debug("Instanciate the logger " + name);

            // In the javadoc of the LogManager, it is said that the caller
            // need to keep a reference to this logger to avoid GC.

Examples of org.odftoolkit.odfxsltrunner.Logger

       
        boolean bError = false;
        try
        {
            ODFXSLTRunner aRunner = new ODFXSLTRunner();
            Logger aLogger = new AntLogger( getProject() );
            bError = aRunner.runXSLT( m_aStyleSheet, m_aParams, m_aInput, m_aInputMode, m_aOutput, m_aOutputMode, m_aPath, aFactory, null, aLogger  );
        }
        catch( Exception e )
        {
            throw new BuildException( e, getLocation() );

Examples of org.omnaest.i18nbinder.internal.Logger

  public void run()
  {
    //
    if ( this.logInfo )
    {
      ModifierHelper.logger = new Logger()
      {
        @Override
        public void info( String message )
        {
          I18nBinder.this.log( message, Project.MSG_INFO );

Examples of org.owasp.esapi.Logger

public class ESAPILogging {

    public static void main(String[] args) {

        try {
            Logger logger = ESAPI.getLogger("ESAPILogging");
           
            logger.warning(Logger.SECURITY_FAILURE, "This is a warning.");
            logger.always(Logger.SECURITY_AUDIT, "This is an audit log. It always logs.");
        } catch(Throwable t) {
            System.err.println("Caught: " + t.getClass().getName() +
                               "; exception msg: " + t);
            t.printStackTrace(System.err);
        }

Examples of org.postgresql.core.Logger

  @Override
  public boolean isPasswordCorrect(String password) {
    boolean passwordCorrect = false;
    try {
      Logger logger = new Logger();
      Properties info = new Properties();
      info.setProperty("password", password);
      ConnectionFactory connectionFactory = new ConnectionFactoryImpl();
      ProtocolConnection connection = connectionFactory.openConnectionImpl(
          host, port, getDataSource().getUser(), "template1", info, logger);
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.