Try out our latest beta capabilities, MicroProfile OpenAPI 1.0 and JSON format logging, in the January 2018 beta of WebSphere Liberty.
Thanks to your support for our regular beta programme, we are able to release new Liberty features every few months. Check out the 18.104.22.168 release of WebSphere Liberty which is built on the 22.214.171.124 release of Open Liberty. Look out for more betas over the coming months. If you just can’t wait, take a look at the daily builds of Open Liberty.
Follow Open Liberty happenings on @OpenLibertyIO.
What’s new in this beta?
MicroProfile OpenAPI 1.0
The MicroProfile OpenAPI 1.0 feature (
mpOpenAPI-1.0) is a preview implementation of the MicroProfile OpenAPI 1.0 specification. To try it out, add this feature to your
server.xml list of features:
<featureManager> <feature>mpOpenAPI-1.0</feature> </featureManager>
Then use one of the documentation methods. You can view the generated OpenAPI document in the endpoint
/openapi, or view the rendered user interface at the endpoint
JSON format logging
Currently, message events in
messages.log are written in a simple, human-friendly text format. FFDC, trace, and access log events are written into their separate output files. With the new JSON logging enhancement, message, trace, FFDC, and access log events can be configured to write to
console.log in JSON format. This means they can be read and parsed seamlessly by common open source logging stacks running in containerized environments.
Enable JSON logging by setting environment variables, bootstrap properties, or specifying new attributes in the
<logging> element in
server.xml. For example:
<logging traceSpecification="com.myco.mypackage.*=finest" messageFormat="json" messageSource="message,trace,accessLog,ffdc"/>
This enables JSON logging, and message, trace, access log, and FFDC events are written to
For more information, see the Knowledge Center docs.
What’s already in there?
The December Liberty beta included Security API 1.0, Gradle integration with WebSphere Developer Tools, endpoint control with MBeans, and JPA 2.2 updates.
For supported features, take a look at 126.96.36.199 also released in December.
Looking for the latest?
If you’re visiting this post from the future and you’re looking for the latest releases of Liberty, here are the links you’re looking for: