Examples of Logger


Examples of org.ribax.logging.Logger

    @SuppressWarnings("unused")
    private Logger reqlog, resplog;
    private void readLogging(Element logging, String typename) {
       
        Logger log;
        Element e;
       
        if ("REQUEST".equals(typename))
            log = reqlog = RequestLog.getInstance(null);
        else
            log = resplog = ResponseLog.getInstance(null);

        // read logging levels after creating the GUI components
        if ((e = logging.getChild("levels")) != null)                        
            log.readLevels(e);
    }

Examples of org.sf.bee.commons.logging.Logger

        }
    }

    public JSONRPCResult call(final Object context[],
            final JSONObject jsonReq) {
        final Logger logger = LoggingUtils.getLogger(this);
        // #1: Parse the request
        final JSONRequest request;
        try {
            request = new JSONRequest(jsonReq);
        } catch (JSONException e) {
            logger.severe("no method or parameters in request");
            return new JSONRPCResult(JSONRPCResult.CODE_ERR_NOMETHOD, null,
                    JSONRPCResult.MSG_ERR_NOMETHOD);
        }
        if (logger.isLoggable(Level.FINE)) {
            logger.log(Level.FINE, "call {0}", request.toString());
        }
        return null != request
                ? this.call(context, request)
                : new JSONRPCResult(JSONRPCResult.CODE_ERR_NOMETHOD, null,
                JSONRPCResult.MSG_ERR_NOMETHOD);

Examples of org.sleuthkit.autopsy.coreutils.Logger

         *
         */


        // Check that the the Sleuth Kit JNI is working by getting the Sleuth Kit version number
        Logger logger = Logger.getLogger(Installer.class.getName());
        try {
            String skVersion = SleuthkitJNI.getVersion();

            if (skVersion == null) {
                throw new Exception(NbBundle.getMessage(this.getClass(), "Installer.exception.tskVerStringNull.msg"));
            } else if (skVersion.length() == 0) {
                throw new Exception(NbBundle.getMessage(this.getClass(), "Installer.exception.taskVerStringBang.msg"));
            } else {
                logger.log(Level.CONFIG, "Sleuth Kit Version: {0}", skVersion); //NON-NLS
            }

        } catch (Exception e) {
            logger.log(Level.SEVERE, "Error calling Sleuth Kit library (test call failed)", e); //NON-NLS


            // Normal error box log handler won't be loaded yet, so show error here.
            final Component parentComponent = null; // Use default window frame.
            final String message = NbBundle.getMessage(this.getClass(), "Installer.tskLibErr.msg", e.toString());

Examples of org.slf4j.Logger

  int diff = new Random().nextInt();
 
  public RecursiveAppender() {
    System.out.println("in RecursiveAppender constructor");
    Logger logger = LoggerFactory.getLogger("RecursiveAppender"+diff);
    System.out.println("logger class="+logger.getClass().getName());
    logger.info("Calling a logger in the constructor");
  }

Examples of org.vertx.java.core.logging.Logger

*/
public class UserAgentReaper extends Verticle {

    @Override
    public void start() {
        final Logger logger = container.logger();
        final Long reaperTimeout = container.config().getLong("userAgentReaperTimeout", 300000);
        logger.info("Started UserAgent Reaper with timeout of [" + reaperTimeout + "]");
        final ConcurrentMap<String, Long> lastAccessedMap = vertx.sharedData().getMap(VertxSimplePushServer.LAST_ACCESSED_MAP);
        final ConcurrentMap<String, String> writeHandlerMap = vertx.sharedData().getMap(VertxSimplePushServer.WRITE_HANDLER_MAP);

        vertx.setPeriodic(reaperTimeout, new Handler<Long>() {
            @Override
            public void handle(final Long timerId) {
                logger.info("UserAgentReaper reaping....");
                final Set<String> markedForRemoval = new HashSet<String>();
                final Set<Entry<String, Long>> entrySet = lastAccessedMap.entrySet();
                for (Entry<String, Long> entry : entrySet) {
                    final String uaid = entry.getKey();
                    final Long timestamp = entry.getValue();

Examples of org.vimplugin.listeners.Logger

      in = new BufferedReader(new InputStreamReader(vimSocket
          .getInputStream()));
      logger.debug("Connection established");

      // Add Listeners
      listeners.add(new Logger());
      listeners.add(new ServerStarted());
      listeners.add(new ServerDisconnect());
      listeners.add(new TextInsert());
      listeners.add(new TextRemoved());
      listeners.add(new FileOpened());

Examples of pt.opensoft.logging.Logger

      for (int i = 0; i < resourcesNames.length; i++) {
        resourceName = resourcesNames[i];
        resourceFullName.append("resource.").append(resourceName).append(".");

        type = parameters.getString(resourceFullName + "type");
        Logger _logger = Logger.getDefault().getWrapper();

        resourceConfigParams.setValue("loggerInstance", _logger);

        Vector properties = parameters.getVector(resourceFullName + "properties");
        for (int j = 0; j < properties.size(); j++) {

Examples of rabbit.util.Logger

    public void timeout () {
  reader.timeout ();
    }
   
    public void run () {
  Logger logger = getLogger ();
  try {
      if (buffer == null)
    allocateBuffer ();
      // read http request
      // make sure we have room for reading.
      int pos = buffer.position ();
      buffer.limit (buffer.capacity ());
      int read = channel.read (buffer);
      if (read == -1) {
    closeDown ();
    reader.closed ();
    return;
      }
      tl.read (read);
      buffer.position (startParseAt);
      buffer.limit (read + pos);
      parseBuffer ();
  } catch (IOException e) {
      logger.logWarn ("Failed to handle connection: " + e);
      reader.failed (e);
  }
    }

Examples of rocket.logging.client.Logger

public class CommonsLoggingService extends LoggingServerService {

  @Override
  protected Logger createLoggerAdapter(final String loggerName) {
    final Log log = LogFactory.getLog(loggerName);
    return new Logger() {
      public void debug(final String message) {
        log.debug(message);
      }

      public void debug(final String message, final Throwable throwable) {

Examples of twitter4j.Logger

        }
    }


    public void dumpConfiguration() {
        Logger log = Logger.getLogger(ConfigurationBase.class);
        if (debug) {
            Field[] fields = ConfigurationBase.class.getDeclaredFields();
            for (Field field : fields) {
                try {
                    Object value = field.get(this);
                    String strValue = String.valueOf(value);
                    if (value != null && field.getName().matches("oAuthConsumerSecret|oAuthAccessTokenSecret|password")) {
                        strValue = String.valueOf(value).replaceAll(".", "*");
                    }
                    log.debug(field.getName() + ": " + strValue);
                } catch (IllegalAccessException ignore) {
                }
            }
        }
    }
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.