Examples of SessionLogEntry


Examples of org.eclipse.persistence.logging.SessionLogEntry

        if (this.isLoggingOff) {
            return;
        }
        if (shouldLog(level, null)) {
            startOperationProfile(SessionProfiler.Logging);
            log(new SessionLogEntry(level, this, message, params, accessor, shouldTranslate));
            endOperationProfile(SessionProfiler.Logging);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLogEntry

            return;
        }
        // Must not create the log if not logging as is a performance issue.
        if (shouldLog(level, category)) {
            startOperationProfile(SessionProfiler.Logging);
            log(new SessionLogEntry(this, level, category, throwable));
            endOperationProfile(SessionProfiler.Logging);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLogEntry

        if (this.isLoggingOff) {
            return;
        }
        if (shouldLog(level, category)) {
            startOperationProfile(SessionProfiler.Logging);
            log(new SessionLogEntry(level, category, this, message, params, accessor, shouldTranslate));
            endOperationProfile(SessionProfiler.Logging);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLogEntry

        if (this.isLoggingOff) {
            return;
        }
        if (shouldLog(level, null)) {
            startOperationProfile(SessionProfiler.Logging);
            log(new SessionLogEntry(level, this, message, params, accessor, shouldTranslate));
            endOperationProfile(SessionProfiler.Logging);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLogEntry

            return;
        }
        // Must not create the log if not logging as is a performance issue.
        if (shouldLog(level, category)) {
            startOperationProfile(SessionProfiler.Logging);
            log(new SessionLogEntry(this, level, category, throwable));
            endOperationProfile(SessionProfiler.Logging);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLogEntry

        if (this.isLoggingOff) {
            return;
        }
        if (shouldLog(level, category)) {
            startOperationProfile(SessionProfiler.Logging);
            log(new SessionLogEntry(level, category, this, message, params, accessor, shouldTranslate));
            endOperationProfile(SessionProfiler.Logging);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLogEntry

        if (this.isLoggingOff) {
            return;
        }
        if (shouldLog(level, null)) {
            startOperationProfile(SessionProfiler.Logging);
            log(new SessionLogEntry(level, this, message, params, accessor, shouldTranslate));
            endOperationProfile(SessionProfiler.Logging);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLogEntry

            return;
        }
        // Must not create the log if not logging as is a performance issue.
        if (shouldLog(level, category)) {
            startOperationProfile(SessionProfiler.Logging);
            log(new SessionLogEntry(this, level, category, throwable));
            endOperationProfile(SessionProfiler.Logging);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLogEntry

public class JpaLoggerTest {
  @Test
  public void testLog() throws Exception {

    Logger logger = createNiceMock(Logger.class);
    SessionLogEntry severeEntry = createNiceMock(SessionLogEntry.class);
    SessionLogEntry configEntry = createNiceMock(SessionLogEntry.class);
    SessionLogEntry finestEntry = createNiceMock(SessionLogEntry.class);
    Formatter formatter = createNiceMock(Formatter.class);

    JpaLogger jpaLogger = new TestJpaLogger(logger, formatter);

    // set expectations

    expect(severeEntry.getLevel()).andReturn(SessionLog.SEVERE);
    expect(formatter.format((LogRecord) anyObject())).andReturn("severe log message");
    logger.error("severe log message");

    expect(configEntry.getLevel()).andReturn(SessionLog.CONFIG);
    expect(formatter.format((LogRecord) anyObject())).andReturn("config log message");
    logger.info("config log message");

    expect(finestEntry.getLevel()).andReturn(SessionLog.FINEST);
    expect(formatter.format((LogRecord) anyObject())).andReturn("finest log message");
    logger.debug("finest log message");

    // replay
    replay(logger, severeEntry, configEntry, finestEntry, formatter);
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLogEntry

        if (this.isLoggingOff) {
            return;
        }
        if (shouldLog(level, category)) {
            startOperationProfile(SessionProfiler.Logging);
            log(new SessionLogEntry(level, category, this, message, params, accessor, shouldTranslate));
            endOperationProfile(SessionProfiler.Logging);
        }
    }
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.