Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSBuild add log file support #703

Closed
patriksvensson opened this issue Feb 22, 2016 · 2 comments
Closed

MSBuild add log file support #703

patriksvensson opened this issue Feb 22, 2016 · 2 comments
Milestone

Comments

@patriksvensson
Copy link
Member

Would be nice if we could add file logging to MSBuild calls.

msbuild.exe /fl1 /fl2 /fl3
            /flp1:logfile=MyProjectOutput1.log;verbosity=diagnostic 
            /flp2:logfile=MyProjectOutput2.log;verbosity=minimal
            /flp3:logfile=MyProjectOutput3.log;Append;errorsonly;Encoding=UTF-8

Maybe we can represent the settings with something like this:

public sealed class MSBuildFileLoggerSettings
{
  public FilePath LogFile { get; set; }
  public Verbosity Verbosity { get; set; }
  public bool ErrorsOnly { get; set; }
  public bool WarningsOnly { get; set; }
  public bool Append { get; set; }
  public Encoding Encoding { get; set; }
}

(This should obviously be discussed before implementation since there's probably is a nicer way of doing this)

And add it to the settings.

MSBuild("./myproject.sln", new MSBuildSettings()
  .AddFileLogger(new MSBuildFileLoggerSettings {
    LogFile = "./errors.txt",
    ErrorsOnly = true   
  })
@gep13
Copy link
Member

gep13 commented Feb 22, 2016

@patriksvensson is this related to this: #702

@patriksvensson
Copy link
Member Author

@gep13 No, it's two different things.

bradtwurst added a commit to bradtwurst/cake that referenced this issue Sep 8, 2016
Addresses issue cake-build#703

Provides the ability to add FileLogger parameters to the MsBuild command
line.  The various fileloggerparameters (flp) can also be specified.

The parameters that can be created are /fl, /fl[1 thru 9], /flp, and
/flp[1 thru 9]
bradtwurst added a commit to bradtwurst/cake that referenced this issue Sep 9, 2016
Addresses issue cake-build#703

Provides the ability to add FileLogger parameters to the MsBuild command
line.  The various fileloggerparameters (flp) can also be specified.

The parameters that can be created are /fl, /fl[1 thru 9], /flp, and
/flp[1 thru 9]
bradtwurst added a commit to bradtwurst/cake that referenced this issue Sep 9, 2016
Addresses issue cake-build#703

Provides the ability to add FileLogger parameters to the MsBuild command
line.  The various fileloggerparameters (flp) can also be specified.

The parameters that can be created are /fl, /fl[1 thru 9], /flp, and
/flp[1 thru 9]
gep13 pushed a commit that referenced this issue Oct 24, 2016
Addresses issue #703

Provides the ability to add FileLogger parameters to the MsBuild command
line.  The various fileloggerparameters (flp) can also be specified.

The parameters that can be created are /fl, /fl[1 thru 9], /flp, and
/flp[1 thru 9]
gep13 added a commit that referenced this issue Oct 24, 2016
@gep13 gep13 added this to the v0.17.0 milestone Oct 24, 2016
@gep13 gep13 closed this as completed Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants