j-easy / easy-batch

The simple, stupid batch framework for Java
https://github.com/j-easy/easy-batch/wiki
MIT License
611 stars 199 forks source link

[Ask] Disable log for easy batch #185

Closed stephendaniel closed 8 years ago

stephendaniel commented 8 years ago

Hi,

Is there any way to turn off the log in easy batch? Thanks.

fmbenhassine commented 8 years ago

Hi,

Yes, you can set the silentMode parameter to disable logs:

Job job = JobBuilder.aNewJob()
    .named("myJob")
    .silentMode(true)
    .build();

Alternatively, you can configure java util logging (used internally by easy batch). See question 8 of the FAQ section.

Hope this helps. Kind regards Mahmoud

stephendaniel commented 8 years ago

Hi,

Thank you very much for your help :) Really appreciate that.

Regards,

Stephen

On 5/11/16 3:18 PM, Mahmoud Ben Hassine wrote:

Hi,

Yes, you can set the |silentMode| parameter to disable logs:

Job job= JobBuilder.aNewJob() .named("myJob") .silentMode(true) .build();

Alternatively, you can configure java util logging (used internally by easy batch). See question 8 of the FAQ http://www.easybatch.org/faq.html section.

Hope this helps. Kind regards Mahmoud

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/EasyBatch/easybatch-framework/issues/185#issuecomment-218392822

fmbenhassine commented 8 years ago

Great, glad it helped :smile: