Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: mi360_sergej on December 03, 2012, 10:35:07 AM

Title: Writing log files
Post by: mi360_sergej on December 03, 2012, 10:35:07 AM
Hi guys,

i want to make some small changes of ml because i need a special bracketing function...
so i set up cygwin and everything under win7, it works, i can compile and everything is fine.

the only problem i have is about logging. the only thing i get are these ROM0 and ROM1 .bin files in "ML\LOGS". i read on the wiki that there is a way to write out the log file as a .txt file in the root directory of the SD card. but how to do that?

i tried already adding CONFIG_DEBUGMSG     = 1 to the makefile, debug.timed-dump = 1 in the config file,...

on another forum i read that i have to call dmstart(); ... but where in the code should i do this?

sorry for these maybe simple questions but i'm new to C and ML-Development.

i would really appreciate your help! thanks!
Title: Re: Writing log files
Post by: gerk.raisen on December 03, 2012, 11:39:42 AM
Hello sergej,

please speak about what function you want, maybe it can also be useful for other people, or another idea can start from it  :)

Thank you.
Title: Re: Writing log files
Post by: mi360_sergej on December 03, 2012, 11:49:18 AM
Hey..

it is about hdr-bracketing. i already discussed this topic here:
http://www.magiclantern.fm/forum/index.php?topic=3694.0

i want to make the bracketing function stop when reaching the shortest exposure time. also if the chosen brackets number was not reached yet.

to do this i want to print some debug-messages, but i don't know where to activate debugging correctly so that i have some log-files in the root-directory of the sd-card :(
Title: Re: Writing log files
Post by: mi360_sergej on December 03, 2012, 04:33:31 PM
ok, i got it to work... but there are less messages in the logfile than there should be...
actually there are almost none of ML-messages....

:-\ did someone have the same problem?
Title: Re: Writing log files
Post by: a1ex on December 03, 2012, 04:36:08 PM
Correct, these logs are trimmed by Canon code. You can just print things on the screen (bmp_printf).
Title: Re: Writing log files
Post by: mi360_sergej on December 04, 2012, 08:52:45 AM
hmmm.. do i have to call some function or activate something for bmp_printf - messages to appear on the screen?
because they don't show up. for testing i placed one in the run_test() method in debug.c, but it doesn't appear when i click don't click me...


Title: Re: Writing log files
Post by: scrax on December 04, 2012, 11:27:07 AM
Quote from: mi360_sergej on December 04, 2012, 08:52:45 AM
hmmm.. do i have to call some function or activate something for bmp_printf - messages to appear on the screen?
because they don't show up. for testing i placed one in the run_test() method in debug.c, but it doesn't appear when i click don't click me...
Make a search for it on the code to see how to use it.