Package org.sf.bee.commons.logging

Examples of org.sf.bee.commons.logging.Logger.severe()


        // #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());
View Full Code Here


                        "Error: [%s], " +
                        "Host: [%s], " +
                        "Port: [%s], User: [%s], Password: [%s], " +
                        "From: [%s], Addresses: [%s], Subject: [%s], " +
                        "Content: [%s]";
                logger.severe(String.format(msg,
                        ExceptionUtils.getRealMessage(sender.getException()),
                        sender.getSmtpHost(), sender.getSmtpPort(),
                        sender.getUser(), sender.getPassword(),
                        sender.getFrom(), CollectionUtils.toDelimitedString(sender.getAddresses(), ";"),
                        sender.getSubject(), sender.getMessage()));
View Full Code Here

                            logger.fine(String.format(
                                    "Init stopping service #%s [%s]",
                                    i, task.toString()));
                        }
                        if (!task.cancel(true) && !task.isFinished()) {
                            logger.severe("Unable to close task: " +
                                    task.toString());
                        } else {
                            logger.fine(String.format(
                                    "Stopped service #%s [%s]",
                                    i, task.toString()));
View Full Code Here

                        task = null;
                    } else {
                        logger.warning("Found NULL task in task list.");
                    }
                } catch (Exception e) {
                    logger.severe(e.toString());
                }
            }
            _taskList.clear();
            if (logger.isLoggable(Level.FINE)) {
                logger.fine("Finish stopping services. " +
View Full Code Here

                } else {
                    tasklist.remove(i);
                    logger.fine("Removed NULL task from list.");
                }
            } catch (Exception e) {
                logger.severe(e.toString());
            }
        }

        if (logger.isLoggable(Level.FINE)) {
            logger.fine(String.format("Removed [%s] finished task.", count));
View Full Code Here

                        scheduled, delay, period, unit);
            } else if (TaskTypes.withFixedDelay.equals(taskType)) {
                future = this.scheduleWithFixedDelay((Runnable) taskObject,
                        scheduled, delay, period, unit);
            } else {
                logger.severe("Unsupported task type: " + taskType.toString());
                return null;
            }
        } else if (taskObject instanceof Callable) {
            this.schedule((Callable) taskObject, scheduled, delay, unit);
        } else {
View Full Code Here

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.