APISonar


jetbrains.exodus.log.Log.Log

> jetbrains > exodus > log > Log > Log
jetbrains APIs exodus APIs log APIs Log APIs Log APIs

Example 1
protected Log createLog() {
        LogConfig config = createLogConfig();
        try {
            config.setDir(temporaryFolder.newFolder("logData"));
        } catch (IOException e) {
            throw ExodusException.toExodusException(e);
        }
        return new Log(config);
    }
Example 2
public static Log newLogInstance(@NotNull final LogConfig config) {
        SharedOpenFilesCache.setSize(config.getCacheOpenFilesCount());
        return new Log(config);
    }
Example 3
public static Log newLogInstance(@NotNull final LogConfig config) {
        // In order to avoid XD-96, we need to load the DatabaseRoot class before creating Log instance
        DatabaseRoot.register();
        return new Log(config);
    }