jsmorris
2008-Feb-26 20:43 UTC
[Cruisecontrolrb-users] Best way to log output from custom plugin on build finish
I have been trying to add some logging information from my custom
plugin to the build output, but no luck. I have been using variations
of
CruiseControl::Log.event("...")
CruiseControl::Log.info("...")
but nothing I try seems to output anywhere. I have looked in the
build.log, production.log, _builder.log, etc
Any help explaining how to log and where the messages will show up
will be appreciated.
I am hoping for my plugin messages to end up in the build.log output,
something like
C:/tools/cruisecontrolrb/cruisecontrolrb-1.2.1/projects/xxxx-deploy/work
jmorris2$ ruby -e "require ''rubygems'' rescue nil; require
''rake''; load
''C:/tools/cruisecontrolrb/cruisecontrolrb-1.2.1/tasks/cc_build.rake'';
ARGV << ''--nosearch'' <<
''cc:build''; Rake.application.run" (in
C:/tools/cruisecontrolrb/cruisecontrolrb-1.2.1/projects/xxxx-deploy/work)
[CruiseControl] Invoking Rake task "cruise:deploy:dev"
deploying to development... <-- this message is from puts in my rakefile
My custom message here... <-- this message would be from my custom
plugin that runs after the build finishes
Thanks,
Jason
