Several log files for one project

Hi,

I would like to have one dedicated log file for few actions. In my project ( I'm using eveluated version) I have more than 30 actions.
Is It possible?

Thanks in advance...

 

Hi Daniel

I hope I understand your question...

I use in my project to generate a log file the "Export Log File" FinalBuilder Action. There you can generate html or an xml file.

Have a look at it.

You wil find that action in the category "Misc" --> "Export Log File"

Hope this helps!

Regards,

Chrsitof

Hi Christof,

I know that it is possible to have log file for the FB project using 'ExportLogFile'. But in case of two VC++ solutions I would like to have two different log files (each solution has its own log file). When I use 'Export Log file' after compilation of the second solution I recived all information from both compilation....

Is it possible to set using 'ExportLogFile' that one ActionGroup will save info into one log file and the second ActionGroup will save info to another file without info from the first ActionGroup?

regards

Daniel

 

 

 

Sorry for misunderstanding!

Yes, now I see your problem...

I don't now either if its possible to realise it... Maybe one of the FB crew knows it?

If I find time, I wil try...

I let you know if I find a way!

Regards,

Christof

Daniel,

I can tell you what I do... maybe it will help. I have one VS C# solution with 12+ projects. For the build, I create a separate log file for each project, so if one of the projects fails I can easily look at its specific log file instead of weed through the huge FB log file.

I'll try to clearly explain how I do this... Basically, I have an action list that I use as a "function", with Action List parameters acting as the function parameters.

My core Action List function is "VS Project", which is for building one specific VS project. I pass in, via Action List parameters, the name of the project and location of the project, among other things. My action list does some housekeeping (explained below) and ultimately calls the FB "Build VS.NET Solution" action. I log all output from "Build VS.NET Solution" to a variable.

As part of this housekeeping, I determine a log filename for the build, which consists of a combination of the code branch, project name, version and date/time. For example, the resulting log filename might end up being "c:\logs\main\CoolProject_2.1.0.110_20080129-1530.log".

After the "Build VS.NET Solution" action is called, I call the FB "Write to Text File" action with the given log filename (and Create if Missing checked), so the log gets saved to the file.

So using this method, I can easily find the log generated for each build of each project.

I hope this helps!

(BTW, I find that using this "function" capability of Action Lists comes in very handy.  I use it for other build tasks as well).

 


thanks Mike… :slight_smile: