Hi Abhijit,

Dropwizard only integrates with Logback out of the box. If you want to use 
another logging framework such as Log4j 2.x, you'll have to use the "external" 
logging configuration and provide your own configuration for the logging 
framework you've chosen.

See https://www.dropwizard.io/en/release-2.0.x/manual/core.html#logging 
<https://www.dropwizard.io/en/release-2.0.x/manual/core.html#logging> for 
details.

Regards,
Jochen

> Am 23.04.2021 um 10:33 schrieb 'Abhijit Bhadra' via dropwizard-user 
> <[email protected]>:
> 
> Thanks Jochen
> 
> I am new to dropwizard framework , can I directly use CsvParameterLayout in 
> the config.yml file of the logger configuration ?
> thanks,
> Abhijit
> 
> On Fri, Apr 23, 2021 at 7:47 AM Jochen Schalanda <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi,
> 
> You could try combining the CSV layout and the rolling file appender:
> 
> https://logging.apache.org/log4j/log4j-2.5/manual/layouts.html#CSVLayouts 
> <https://logging.apache.org/log4j/log4j-2.5/manual/layouts.html#CSVLayouts>
> https://logging.apache.org/log4j/log4j-2.5/manual/appenders.html#RollingFileAppender
>  
> <https://logging.apache.org/log4j/log4j-2.5/manual/appenders.html#RollingFileAppender>
>  
> 
> Cheers,
> Jochen
> 
>> Am 22.04.2021 um 21:51 schrieb 'Abhijit Bhadra' via dropwizard-user 
>> <[email protected] <mailto:[email protected]>>:
>> 
>> I have semi-colon separated values logged to a csv file using log4j. Now i 
>> wanted to write a header in first line [only once, everyday]. How this can 
>> be done?
>> 
>> Example
>> message id, file name, start time, end time, status
>> MSGID1000;SAMPLE.TXT;01:05:55;07:08:44;OK
>> MSGID1000;SAMPLE.TXT;01:05:55;07:08:44;NOK
> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "dropwizard-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/dropwizard-user/bhZbGHMVCEY/unsubscribe 
> <https://groups.google.com/d/topic/dropwizard-user/bhZbGHMVCEY/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dropwizard-user/D6162554-5B1E-4D56-90C1-0658ADB2FFDD%40schalanda.name
>  
> <https://groups.google.com/d/msgid/dropwizard-user/D6162554-5B1E-4D56-90C1-0658ADB2FFDD%40schalanda.name?utm_medium=email&utm_source=footer>.
> 
> This electronic communication and the information and any files transmitted 
> with it, or attached to it, are confidential and are intended solely for the 
> use of the individual or entity to whom it is addressed and may contain 
> information that is confidential, legally privileged, protected by privacy 
> laws, or otherwise restricted from disclosure to anyone else. If you are not 
> the intended recipient or the person responsible for delivering the e-mail to 
> the intended recipient, you are hereby notified that any use, copying, 
> distributing, dissemination, forwarding, printing, or copying of this e-mail 
> is strictly prohibited. If you received this e-mail in error, please return 
> the e-mail to the sender, delete it from your computer, and destroy any 
> printed copy of it.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "dropwizard-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dropwizard-user/CAKvMTewzKc5ckmZWVqLFUV9xTYVa9WPtBFCixJe06tgySe5qVQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/dropwizard-user/CAKvMTewzKc5ckmZWVqLFUV9xTYVa9WPtBFCixJe06tgySe5qVQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dropwizard-user/9976E335-AD57-4B34-AB34-0A0435570C76%40schalanda.name.

Reply via email to