← Back to team overview

dolfin team mailing list archive

[HG dolfin] Cleanup in Logger: don't use stdio.h and const char*

 

One or more new changesets pushed to the primary DOLFIN repository.
A short summary of the last three changesets is included below.

changeset:   3029:18f0d37a59e80b2058200e442ab6282a08315668
tag:         tip
user:        "Anders Logg <logg@xxxxxxxxx>"
date:        Sun May 13 22:02:00 2007 +0200
files:       src/demo/pde/poisson/Makefile src/kernel/log/Logger.cpp src/kernel/log/Progress.cpp src/kernel/log/dolfin/Logger.h src/kernel/log/dolfin/Progress.h src/kernel/log/dolfin/log.h src/kernel/log/log.cpp src/kernel/pde/LinearPDE.cpp
description:
Cleanup in Logger: don't use stdio.h and const char*


changeset:   3028:1eb846e8627c52562113c8e071939e398f818892
user:        "Ola Skavhaug <skavhaug@xxxxxxxxx>"
date:        Fri May 11 23:43:50 2007 +0200
files:       src/demo/mesh/partitioning/main.cpp src/demo/pde/elasticity/plot.py src/kernel/log/Logger.cpp src/kernel/log/dolfin/Logger.h src/kernel/log/dolfin/log.h src/kernel/log/log.cpp
description:
Logger.h only works with strings (and some char*), and log.h deals with the var-args issues.


changeset:   3027:3f54cd8af10abb68bd80fe2a73a0758641d5fcb6
user:        "Anders Logg <logg@xxxxxxxxx>"
date:        Fri May 11 14:25:51 2007 +0200
files:       src/demo/pde/elasticity/main.cpp src/kernel/log/GenericLogger.cpp src/kernel/log/Logger.cpp src/kernel/log/Makefile.am src/kernel/log/Makefile.in src/kernel/log/SilentLogger.cpp src/kernel/log/TerminalLogger.cpp src/kernel/log/dolfin/GenericLogger.h src/kernel/log/dolfin/Logger.h src/kernel/log/dolfin/Makefile.am src/kernel/log/dolfin/Makefile.in src/kernel/log/dolfin/SilentLogger.h src/kernel/log/dolfin/TerminalLogger.h src/kernel/log/dolfin/log.h src/kernel/log/log.cpp
description:
Cleanup log system:
 - Remove classes GenericLogger, TerminalLogger and SilentLogger
 - Throw exception instead of exit(1) in dolfin_error()
 - Throw exception instead of raise(SIGSEGV) in dolfin_assert()

TODO:
 - More cleanups (collect stdarg in log.cpp)
 - PyDOLFIN/PyCC interface to log system


----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin