Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7511221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:28:55+00:00 2026-05-29T23:28:55+00:00

I came across fabric modules – Its really cool. It works well for me.

  • 0

I came across fabric modules – Its really cool. It works well for me. Now I have an issue ,how to collect output from fabric script?

# cat fabfile.py
from fabric.api import *
from fabric.contrib.console import confirm

env.hosts = ['localhost' , '172.16.10.112','172.16.10.106']
env.user='testuser'
env.password = 'testuser'
@parallel
def uptime():
    run('uname -a')

I would like to use logging modules with fabric and use them inside the code itself .- Don’t want to use normal redirection like “fab uptime &> log.out “

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:28:57+00:00Added an answer on May 29, 2026 at 11:28 pm

    It looks like fabric itself doesn’t use logging.

    Issue#57 is already opened regarding that, but I’m afraid that until it’s fixed you’ll need to stick to redirection or have a look at some of the branches in github with changes to do that:

    • tswicegood/fabric
    • ampledata/fabric
    • pmuller’s streamlogger gist
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across this recently, up until now I have been happily overriding the
I came across what looks like an odd issue with either Zend_Db or PHP's
I have been doing research on HTML canvas libraries and I came across this
I came across this syntax which i have not seen before struct A {
I came across this code today and don't really understand it. Please could someone
I came across these on the new job I just started. I don't have
I came across them, but I have yet to see why I should use
Came across the term pigeon computing while reading about how google works.. Can someone
I came across this program and its not behaving in expected way. public class
Came across a code, and was wondering why this works? $.fn.appendVal = function(txt) {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.