You just need to define a logger in the logging subsystem and assign your handler to it. Let's assume you're class is named com.example.MyClass. You can define either a logger called com.example or com.example.MyClass. Defining it as com.example is generally the best approach unless you want that specific logger to go it it's own file.
If you want com.example to only log to the FILE2 handler and not the CONSOLE or FILE handlers, then add the use-parent-handlers=false attribute.
James R. Perkins