Here is the promised example of java.util.logging logs working with beanmill:
Handler socket = new ObjectOrientedSocketHandler("localhost", 4445);
Logger logger = Logger.getLogger("de.cismet.nameyourlogger");
logger.setLevel(Level.ALL);
logger.addHandler(socket);
for (int i=0;i<1000;++i) {
logger.log(Level.SEVERE, "log this !!! ");
}
you need the class ObjectOrientedSocketHandler which is included originally in the lumbermill project (The codebase for beanmill).
Click on more to see the code of the ObjectOrientedSocketHandler and embed it in your project if you want.
Read more…
Tom asked for the source code of the beanmill plugin. So I put a link on the beanmill page.
There are 2 projects. A normal Java Project and a Module Suite. The Java Project is a fork of the Lumbermill project. We eliminated a memory leak (thanks Sebastian) and add some functionalities. We will refactor the lumbermill code soon to fulfill our coding conventions. So stay tuned. There will be a update soon.
The Project Suite uses this project with a Library Wrapper. If you have question don’t hesitate to contact us.
Have a good one
Thorsten
Hi folks. We are proud to announce that our Beanmill Plugin is the “Plug-in of the podcast” of the Netbeans Podcast Episode #39 of the famous Blog of Roman Strobl.
Have fun
Thorsten
Did you find a bug in Beanmill? Do you have an issue?
Just file it in our bugtrackingsystem.
Have fun
Thorsten