-
Notifications
You must be signed in to change notification settings - Fork 0
Logging Options
There are a few settings that you can use for logging, from every Albacore rake task. These settings apply to the specific task instance only, at this point. So if you want to configure logging on multiple instances of a msbuildtask, you have to configure it on each task.
Each task supports a .log_level setting. The only valid option for this setting is “:verbose”. Any other option specified will put the log_level back to non-verbose mode.
obj.log_level = :verboseThe default for log_level is to be in non-verbose mode.
When a task has it’s log_level set to verbose mode, you will receive “debug” level logging information in the log output. This may include data such as the individual attributes that are being generated by the assemblyinfotask, or other such data that may not be useful during the normal operations of the task.
Verbose mode is probably most useful during the setup and debugging of your rake scripts.
Each task supports a .log_device setting. This allows you to change the output location of the logging messages. The default logging location is “STDOUT”. This will dump all log messages to the console window, where most CI servers will pick it up.
You can change this setting to any valid IO device, such as a StringIO object.
strio = StringIO.new
obj.log_device = strioYou will not likely have much use for this, unless your CI build environment wants to have logging information dumped into a very specific place, such as a file. Honestly, the primary reason I included this option was for the functional specification tests that I wrote around the tasks. I needed a way to capture the logged information, to verify it was correct.
- Build-Server Integration
- Command Line Task Options
- Configuration
- Custom Tasks
- Logging Options
- Sample Usages
- Task Arguments and Rakefile Parameters
- YAML Configuration
- ASP.NET Compiler - ASP.Net website compiler
- Assembly Info Generator - generate assembly info dynamically
- CSC - C# compiler
- Exec - Execute arbitrary cmd
- Fluent Migrator - Run FluentMigrator on migration library
- ILMerge - Merge dll/exe-s together
- MSBuild and XBuild - Compile a .sln-file or a MsBuild xml-file
- MSpec - Test using MSpec (machine.specifications)
- MSTest - Test using Microsoft Test Framework
- NAnt - Run a NAnt script
- NChurn - Calculate per-file churn
- NCover Console - Run NCover for tests/library
- NCover Reports - Generate a report from a coverage run
- NDepend - Run NDepend to check static code metrics
- NuGet Install - Install NuGet packages
- NuGet Pack - Create NuGet packages
- NuGet Push - Push NuGet packages to official MS repo
- NuGet Publish - Publish NuGet packages
- NUnit - Test using NUnit
- NuSpec - Generate a NuSpec file
- Output - File copying and template expansion
- PLink - SSH into a remote computer and run a command
- SQLCmd - Run a SQL command as a part of your build process
- UnZip - Unzip a directory
- XBuild - Run XBuild (will be merged into MsBuild)
- XUnit - Test using XUnit
- Zip - Zip a directory or files
- Edit the Wiki Locally - How to edit the wiki without using Github's interface
- How to Build Albacore
- How to Contribute