unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged
@ 2017-05-25  7:54 Brenton Horne
  2017-05-25 16:41 ` Arun Isaac
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Brenton Horne @ 2017-05-25  7:54 UTC (permalink / raw)
  To: 27067

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

Hi,

As I understand it only the guix build command has an option to log output
to a file. I would like to request that each guix command have the option
at least (if not automatic like it is for Gentoo's Portage package manager)
to log all output to a file. I believe this will help both users and
developers deal with bugs and alike in the package manager. I realize
people can already log all output using redirection like with:

COMMAND > output.log 2>&1


but with this method no output is shown at the command-line so users can't
track what guix is doing in real-time.

Thanks for your time,
Brenton

[-- Attachment #2: Type: text/html, Size: 968 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged
  2017-05-25  7:54 bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged Brenton Horne
@ 2017-05-25 16:41 ` Arun Isaac
  2017-05-25 17:05 ` bug#27067: Reply to Arun Isaac's reply Brenton Horne
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Arun Isaac @ 2017-05-25 16:41 UTC (permalink / raw)
  To: Brenton Horne; +Cc: 27067


> I realize people can already log all output using redirection like
> with:
>
> COMMAND > output.log 2>&1
>
> but with this method no output is shown at the command-line so users can't
> track what guix is doing in real-time.

Somebody else should comment on the feature request. But, for immediate
usage, to both log the output and see it in real-time, you could use
something like:

COMMAND | tee output.log

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#27067: Reply to Arun Isaac's reply
  2017-05-25  7:54 bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged Brenton Horne
  2017-05-25 16:41 ` Arun Isaac
@ 2017-05-25 17:05 ` Brenton Horne
       [not found] ` <a7836b86.AEAAKjHnUF4AAAAAAAAAAAPE-g8AAAACwQwAAAAAAAW9WABZJwlc@mailjet.com>
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Brenton Horne @ 2017-05-25 17:05 UTC (permalink / raw)
  To: 27067

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

Hi,

Thanks. This feature would still be useful though, but your idea makes it
less urgent. Automatic logging still sounds like a good idea as the Guix
package manager is quite slow for some operations at the moment (not
criticising the developers of Guix, after all at this early stage of
development issues like this are to be expected), for me at least running
GuixSD in a QEMU VM with 8 GB RAM and 3 CPU cores (3.3 GHz i7 cores), so it
might save users interested in filing bug reports a lot of time (on
re-running the problem command with `| tee output.log` after it) if the
output was logged automatically. Saving users time will probably mean users
will be far more motivated and able to provide bug reports on issues they
experience, which is good for the entire Guix community as bugs would get
reported and resolved faster.

Thanks for your time,
Brenton

[-- Attachment #2: Type: text/html, Size: 1123 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged
       [not found]     ` <3b96388e.AEAAKj4NjDIAAAAAAAAAAAPE-g8AAAACwQwAAAAAAAW9WABZJx4e@mailjet.com>
@ 2017-05-25 18:25       ` Brenton Horne
  0 siblings, 0 replies; 10+ messages in thread
From: Brenton Horne @ 2017-05-25 18:25 UTC (permalink / raw)
  To: 27067

[-- Attachment #1: Type: text/plain, Size: 1632 bytes --]

I'm afraid I have no knowledge of Guile or Scheme. Looking at the Guile
manual seems to indicate to me it's a language quite unlike most languages
I've coded in. The only exception is that it does look a little like Emacs
Lisp.

On 26 May 2017 at 04:10, Arun Isaac <arunisaac@systemreboot.net> wrote:

>
> Brenton Horne writes:
>
> > Thanks. I did ask in the #guix IRC channel first and no one provided this
> > solution (not using this as some criticism, I realize the IRC channel is
> > people volunteering their time to help others, just mentioning) and one
> > person agreed with my suggestion of reporting this as a feature request.
> > Still this feature would be useful, but your idea makes it less urgent.
> > Automatic logging still sounds like a good idea as Guix is quite slow for
> > some operations at the moment (not dissing the developers of Guix, after
> > all at this early stage of development issues like this are to be
> > expected), for me at least running GuixSD in a QEMU VM with 8 GB RAM and
> 3
> > CPU cores (3.3 GHz i7 cores), so it might save users interested in filing
> > bug reports a lot of time (on re-running the problem command with `| tee
> > output.log` after it) if the output was logged automatically. Saving
> users
> > time will probably mean users will be far more motivated and able to
> > provide bug reports on issues they experience, which is good for the
> entire
> > Guix community as bugs would get reported and resolved faster.
>
> You could work on this issue, and submit a patch. I'm sure that would be
> welcome.
>
> Regards,
> Arun Isaac.
>



-- 
Thanks for your time,
Brenton

[-- Attachment #2: Type: text/html, Size: 2243 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged
  2017-05-25  7:54 bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged Brenton Horne
                   ` (2 preceding siblings ...)
       [not found] ` <a7836b86.AEAAKjHnUF4AAAAAAAAAAAPE-g8AAAACwQwAAAAAAAW9WABZJwlc@mailjet.com>
@ 2017-05-25 20:10 ` Ricardo Wurmus
  2017-05-25 20:33   ` Brenton Horne
  2017-05-30 20:14 ` Ludovic Courtès
  2018-12-17  9:30 ` swedebugia
  5 siblings, 1 reply; 10+ messages in thread
From: Ricardo Wurmus @ 2017-05-25 20:10 UTC (permalink / raw)
  To: Brenton Horne; +Cc: 27067


Brenton Horne <brentonhorne77@gmail.com> writes:

> As I understand it only the guix build command has an option to log output
> to a file.

Actually, the output of “guix build” is indeed stored by default.
You can get it by asking for the logs for a given derivation.

For example:

    # build something, please
    guix build --no-substitutes samtools
    …
    # show me the derivation
    guix build -d samtools
    # show me the location of the matching log
    guix build --log-file $(guix build -d samtools)

Does this solve the feature request?

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged
  2017-05-25 20:10 ` Ricardo Wurmus
@ 2017-05-25 20:33   ` Brenton Horne
  2017-05-25 21:30     ` Ricardo Wurmus
  0 siblings, 1 reply; 10+ messages in thread
From: Brenton Horne @ 2017-05-25 20:33 UTC (permalink / raw)
  To: 27067

[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]

This feature request isn't specific to guix build (it was low priority to
me as I knew it at least had the ability to log, thanks for telling me it
automatically does but it doesn't really change this feature request), it's
asking for all guix commands with substantial output to automatically log.
I have never run guix build, but I know that some guix commands run for a
very long time and if they fail and do not log it, it can be quite
irritating to have to re-run it and use tee to log its output. For example,
`guix pull && guix package -u` has taken up to 12 hours to run for me
before, so if it fails and doesn't log it can be quite an irritating waste
of time and deter people from filing invaluable bug reports about issues
they've experienced with guix.

On 26 May 2017 at 06:10, Ricardo Wurmus <rekado@elephly.net> wrote:

>
> Brenton Horne <brentonhorne77@gmail.com> writes:
>
> > As I understand it only the guix build command has an option to log
> output
> > to a file.
>
> Actually, the output of “guix build” is indeed stored by default.
> You can get it by asking for the logs for a given derivation.
>
> For example:
>
>     # build something, please
>     guix build --no-substitutes samtools
>     …
>     # show me the derivation
>     guix build -d samtools
>     # show me the location of the matching log
>     guix build --log-file $(guix build -d samtools)
>
> Does this solve the feature request?
>
> --
> Ricardo
>
> GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
> https://elephly.net
>
>


-- 
Thanks for your time,
Brenton

[-- Attachment #2: Type: text/html, Size: 2309 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged
  2017-05-25 20:33   ` Brenton Horne
@ 2017-05-25 21:30     ` Ricardo Wurmus
  0 siblings, 0 replies; 10+ messages in thread
From: Ricardo Wurmus @ 2017-05-25 21:30 UTC (permalink / raw)
  To: Brenton Horne; +Cc: 27067


Brenton Horne <brentonhorne77@gmail.com> writes:

> For example,
> `guix pull && guix package -u` has taken up to 12 hours to run for me
> before, so if it fails and doesn't log it can be quite an irritating waste
> of time and deter people from filing invaluable bug reports about issues
> they've experienced with guix.

“guix package” really does the same as “guix build” and if it fails the
failure will be recorded in the log that belongs to the derivation that
failed.

Not sure about “guix pull”, though.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged
  2017-05-25  7:54 bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged Brenton Horne
                   ` (3 preceding siblings ...)
  2017-05-25 20:10 ` Ricardo Wurmus
@ 2017-05-30 20:14 ` Ludovic Courtès
  2018-12-17  9:30 ` swedebugia
  5 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2017-05-30 20:14 UTC (permalink / raw)
  To: Brenton Horne; +Cc: 27067

Hi Brenton,

Brenton Horne <brentonhorne77@gmail.com> skribis:

> As I understand it only the guix build command has an option to log output to a file.

Every derivation that is built, regardless of the command, has its log
stored in /var/log/guix/drvs.  What ‘guix build’ has is a simple way to
get the file name or URL of a build log:

  guix build --log-file coreutils

See:

  https://www.gnu.org/software/guix/manual/html_node/Additional-Build-Options.html
  https://www.gnu.org/software/guix/manual/html_node/Invoking-guix_002ddaemon.html
    (specifically --lose-logs and --disable-log-compression)

Can we say your feature request has already been fulfilled?  :-)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged
  2017-05-25  7:54 bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged Brenton Horne
                   ` (4 preceding siblings ...)
  2017-05-30 20:14 ` Ludovic Courtès
@ 2018-12-17  9:30 ` swedebugia
  2018-12-18 11:21   ` Ludovic Courtès
  5 siblings, 1 reply; 10+ messages in thread
From: swedebugia @ 2018-12-17  9:30 UTC (permalink / raw)
  To: 27067

Hi

I think the current logging is good enough.

I vote for closing this as Brenton did not answer during a long time and
nobody else thought this was worth implementing.

We could add a note to the manual with a very general pipe output tip,
but it would probably just clutter an already large manual.

-- 
Cheers 
Swedebugia

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged
  2018-12-17  9:30 ` swedebugia
@ 2018-12-18 11:21   ` Ludovic Courtès
  0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2018-12-18 11:21 UTC (permalink / raw)
  To: swedebugia; +Cc: 27067-done

Hi,

swedebugia@riseup.net skribis:

> I think the current logging is good enough.
>
> I vote for closing this as Brenton did not answer during a long time and
> nobody else thought this was worth implementing.

I agree, done!

Ludo’.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-12-18 11:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25  7:54 bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged Brenton Horne
2017-05-25 16:41 ` Arun Isaac
2017-05-25 17:05 ` bug#27067: Reply to Arun Isaac's reply Brenton Horne
     [not found] ` <a7836b86.AEAAKjHnUF4AAAAAAAAAAAPE-g8AAAACwQwAAAAAAAW9WABZJwlc@mailjet.com>
     [not found]   ` <CANb+58K6AENjXCrPF=gE=ou+AKE=G+R9+qscPjj3vQjSE-eijQ@mail.gmail.com>
     [not found]     ` <3b96388e.AEAAKj4NjDIAAAAAAAAAAAPE-g8AAAACwQwAAAAAAAW9WABZJx4e@mailjet.com>
2017-05-25 18:25       ` bug#27067: Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged Brenton Horne
2017-05-25 20:10 ` Ricardo Wurmus
2017-05-25 20:33   ` Brenton Horne
2017-05-25 21:30     ` Ricardo Wurmus
2017-05-30 20:14 ` Ludovic Courtès
2018-12-17  9:30 ` swedebugia
2018-12-18 11:21   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).