1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-26 02:30:29 +01:00

fancy format of logs in files, not in terminal

This commit is contained in:
kalmar 2017-03-15 18:41:59 +01:00
parent 33585437c1
commit b5608d473f

View File

@ -5,7 +5,7 @@ using GroupAlgebras
import SCS.SCSSolver import SCS.SCSSolver
using Memento using Memento
const logger = basic_config("info"; fmt="[{date}|{level}]: {msg}") const logger = basic_config("info")
const solver_logger = basic_config("info") const solver_logger = basic_config("info")
include("sdps.jl") include("sdps.jl")
@ -102,7 +102,7 @@ function check_property_T(name::String, ID, generate_B₄::Function;
mkdir(name) mkdir(name)
end end
add_handler(logger, DefaultHandler("./$name/full.log"), "full") add_handler(logger, DefaultHandler("./$name/full.log", DefaultFormatter("{date}|{msg}")), "full")
add_handler(solver_logger, DefaultHandler("./$name/solver.log"), "solver") add_handler(solver_logger, DefaultHandler("./$name/solver.log"), "solver")
info(logger, "Group: $name") info(logger, "Group: $name")
info(logger, "Precision: $tol") info(logger, "Precision: $tol")