private static boolean shouldWriteAccessLog(ServiceConfig config) {
        return config.accessLogWriter() != AccessLogWriter.disabled() &&
                config.transientServiceOptions().contains(TransientServiceOption.WITH_ACCESS_LOGGING);
    }
Returns whether an access log should be written.
core/src/main/java/com/linecorp/armeria/server/AccessLogWriterUtil.java