buildbot / sandbox

ticket migration sandbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flexible default logging.

bb-bot opened this issue · comments

This ticket is a migrated Trac ticket 593

People contributed to the original ticket: @djmitche (commenter), verm@... (commenter, reporter)


At the moment it's possible to specify logging (using default configurations) in only one way, which is to supply logfiles={}

This has the disadvantage of streaming data in real time. Not all logs during the build process require realtime streaming.

Another issue is the stdio log, this copies both stdin and stderr to the same log file.

It would be nice to have three specific features added to the default logging mech:

  1. Specify different logfiles for stdin/stderr or other named pipes.

  2. Specify a logfile that should only be uploaded at the end of the build step, whether it fails or succeeds. For example uploading config.status and config.log at the end running ./configure in a gnu autoconf setup.

  3. The ability to specify a callback to filter a log file through. For instance:

    log(, , )

This would allow for filtering output from utilities that allow for custom log file output, such as cl from MSVC, or other utilities that may provided XML or other normalised output methods.

Related:

  • #615
  • #1699