Examples of logMessage()


Examples of smilehouse.opensyncro.pipes.log.LogEntry.logMessage()

            // If some component did not deliberately fail the transfer by
            // throwing AbortTransferException, log the exception
            // -----------------------------------------------------------
            if(!(e instanceof FailTransferException)) {
                Environment.getInstance().log(Utils.getThrowableName(e) + " during transfer, " + currentTask, e);
                logEntry.logMessage(
                    Utils.getThrowableName(e) + " during transfer, " + currentTask + ": " + e.getMessage()
                            + ". See OpenSyncro log file for details.",
                    this,
                    MessageLogger.ERROR);
            }
View Full Code Here

Examples of smilehouse.opensyncro.pipes.log.LogEntry.logMessage()

           
                case LogEntry.STATUS_OK:
                    break;
                   
                case LogEntry.STATUS_ABORTED:
                    logEntry.logMessage("TRANSFER ABORTED", this, MessageLogger.WARNING);
                    break;
                   
                // The rest of the statusCodes are errors   
                default:
                    logEntry.logMessage("TRANSFER FAILED!", this, MessageLogger.ERROR);
View Full Code Here

Examples of smilehouse.opensyncro.pipes.log.LogEntry.logMessage()

                    logEntry.logMessage("TRANSFER ABORTED", this, MessageLogger.WARNING);
                    break;
                   
                // The rest of the statusCodes are errors   
                default:
                    logEntry.logMessage("TRANSFER FAILED!", this, MessageLogger.ERROR);
                    break;
            }
           
            logEntry.logMessage("Pipe execution finished", this, MessageLogger.DEBUG);
            setExecutionEndInfo( new Date(), System.currentTimeMillis()-start, statusCode);
View Full Code Here

Examples of smilehouse.opensyncro.pipes.log.LogEntry.logMessage()

                default:
                    logEntry.logMessage("TRANSFER FAILED!", this, MessageLogger.ERROR);
                    break;
            }
           
            logEntry.logMessage("Pipe execution finished", this, MessageLogger.DEBUG);
            setExecutionEndInfo( new Date(), System.currentTimeMillis()-start, statusCode);
            addLogEntry(logEntry, statusCode);
           
            // Add "--" log message entry when there are no other entries.
            // Needed to display log entries that don't have log message entries.
View Full Code Here

Examples of smilehouse.opensyncro.pipes.log.LogEntry.logMessage()

            // Add "--" log message entry when there are no other entries.
            // Needed to display log entries that don't have log message entries.
            Persister persister = new Persister(database);
            if (persister.getLogMessageEntries(logEntry.getId(), MessageLogger.LOG_DYNAMIC).size() == 0){
              logEntry.setIndex(1);
              logEntry.logMessage("--", MessageLogger.ERROR);
            }

        }

    }
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.