Skip to content

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

JBoss STDIO

This project is a plugin to override standard IO streams and wrap them in a logger.

Usage

Maven

<dependency>
    <groupId>org.jboss.stdio</groupId>
    <artifactId>jboss-stdio</artifactId>
    <version>${version.org.jboss.jboss-stdio}</version>
</dependency>
// Install JBoss Stdio
StdioContext.install();
// Create the context
final StdioContext context = StdioContext.create(
        new NullInputStream(),
        new LoggingOutputStream(java.util.logging.Logger.getLogger("stdout"), java.util.logging.Level.INFO),
        new LoggingOutputStream(java.util.logging.Logger.getLogger("stderr"), java.util.logging.Level.SEVERE)
);
// Register the created context
StdioContext.setStdioContextSelector(new SimpleStdioContextSelector(context));

Contributing

About

JBoss Stdio/Logging interface

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages