Examples of writeEnd()


Examples of javax.json.stream.JsonGenerator.writeEnd()

            final Throwable thrown = record.getThrown();
            if (thrown != null) {
                json.writeStartObject(JSON_KEY_EXCEPTION);
                boolean withDescription = true;
                writeThrowableToJson(json, thrown, withDescription);
                json.writeEnd();
            }

            final Map<String, String> context = thrown != null ?
                    LoggingContext.getLastEnteredContext() :
                    LoggingContext.getContext();
View Full Code Here

Examples of javax.json.stream.JsonGenerator.writeEnd()

                    LoggingContext.getLastEnteredContext() :
                    LoggingContext.getContext();
            if (context != null) {
                writeContextToJson(json, context);
            }
            json.writeEnd();
        }
        json.flush();
        writer.append('\n');
        return writer.toString();
    }
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.