Skip to content

Commit

Permalink
gslab-python/#28 rework logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Quan committed Feb 12, 2017
1 parent 7c447cb commit d244938
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 569 deletions.
Binary file modified .sconsign.dblite
Binary file not shown.
9 changes: 8 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import os
import sys
import gslab_scons.builders as build
import gslab_scons.log as log
import atexit

mode = ARGUMENTS.get('mode', 'develop') # Gets mode; defaults to 'develop'
vers = ARGUMENTS.get('version', '') # Gets release version; defaults to ''
Expand All @@ -23,4 +24,10 @@ Export('env')
SConscript('source/data/SConscript')
SConscript('source/analysis/SConscript')
SConscript('source/paper/SConscript')
SConscript('source/talk/SConscript')
SConscript('source/talk/SConscript')

# end_log_command = Command ('finish', [], )
# Depends(end_log_command, BUILD_TARGETS)
# Default(end_log_command)

atexit.register(log.end_log)
6 changes: 2 additions & 4 deletions output/analysis/sconscript.log
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

*** Builder log created: 2017-01-24 15:58:26
*** Builder log completed: 2017-01-24 15:58:31
*** Builder log created: {2017-02-11 19:40:06}
*** Builder log completed: {2017-02-11 19:40:09}


___ ____ ____ ____ ____ (R)
/__ / ____/ / ____/
___/ / /___/ / /___/ 14.2 Copyright 1985-2015 StataCorp LP
Expand Down
8 changes: 3 additions & 5 deletions output/data/sconscript.log
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

*** Builder log created: 2017-01-24 15:58:25
*** Builder log completed: 2017-01-24 15:58:26
*** Builder log created: {2017-02-11 19:40:04}
*** Builder log completed: {2017-02-11 19:40:06}


R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Expand Down Expand Up @@ -30,4 +28,4 @@ Type 'q()' to quit R.
>
> proc.time()
user system elapsed
0.111 0.024 0.143
0.305 0.087 0.865
Binary file modified output/paper/online_appendix.pdf
Binary file not shown.
Binary file modified output/paper/paper.pdf
Binary file not shown.
8 changes: 3 additions & 5 deletions output/paper/sconscript.log
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

*** Builder log created: 2017-01-24 15:58:36
*** Builder log completed: 2017-01-24 15:58:38

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex)
*** Builder log created: {2017-02-11 19:40:53}
*** Builder log completed: {2017-02-11 19:40:56}
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./paper.tex
Expand Down
8 changes: 3 additions & 5 deletions output/talk/sconscript.log
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

*** Builder log created: 2017-01-19 11:02:40
*** Builder log completed: 2017-01-19 11:02:42

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex)
*** Builder log created: {2017-02-11 19:40:17}
*** Builder log completed: {2017-02-11 19:40:24}
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./slides.tex
Expand Down
Binary file modified output/talk/slides.pdf
Binary file not shown.
Loading

0 comments on commit d244938

Please sign in to comment.