Thanks Sascha,

It worked well !

Following is the code for the beginners in need

mitk::LoggingBackend::Register();

// This will have complete log in one file.
mitk::LoggingBackend::SetLogFile("D:/complete.log");

// This will create new log file for every execution & preserves upto last
99 files.
//mitk::LoggingBackend::IncrementLogFileNames("D:/Numbered_files", 99);
 // increment all existing file numbers by one.
//mitk::LoggingBackend::SetLogFile("D:/Numbered_files-0.log");          //
Create file for current running instance

Best Regards,
Arpit

On Fri, Jan 9, 2015 at 3:39 PM, Sascha Zelzer <[email protected]>
wrote:

> Hi Arpit,
>
> MITK has a BlueBerry independent logging system. You can have a look at
> these logging classes:
>
> http://docs.mitk.org/2014.10/namespacembilog.html
>
> There is also a mitk::LoggingBackend class (in the mitkLog.h header) which
> you can re-use. It allows for setting a custom log file name and optionally
> printing to the console.
>
> Best,
> Sascha
>
> On 01/04/2015 07:45 PM, Arpit Paliwal wrote:
>
>> Hi,
>>
>> I am new to MITK. I am developing a standalone application without using
>> Blueberry framework. I can see all the logging messages from ITK / VTK / My
>> application in debug window.
>>
>> Is there any way to direct all this information to a custom log file
>> without using Blueberry framework files ?
>>
>> Best Regards,
>> Arpit
>>
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to