Opened 5 years ago
Last modified 5 years ago
#54 assigned defect
remove printed output from mantid
Reported by: | zhangjr | Owned by: | dur |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | component1 | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Parent ID: | Parent Tickets: | ||
Estimated Number of Hours: | 0.0 | Add Hours to Ticket: | 0 |
Billable?: | yes | Total Hours: | 0 |
Description
The printed output comes from ctypes C functions.
Subtickets (add)
Change History (6)
comment:1 Changed 5 years ago by zhangjr
comment:2 Changed 5 years ago by zhangjr
A cheap way to do it.
edit mantid-4.2.3/bin/Mantid.properties
logging.loggers.root.level(ERROR)
DEBUG Anything that may be useful to understand what the code has been doing for debugging purposes. E.g. parameter values, milestones, internal variable values. Log at this level often throughout your code.
INFORMATION Useful information to relay back to the user of the framework.
NOTICE Really important information that should be displayed to the user, this should be minimal. Algorithms log at this level when starting/finishing. This is the default logging level.
WARNING Something was wrong but the framework was able to continue despite the problem.
ERROR An error has occurred but the framework is able to handle it and continue.
CRITICAL An important error has occurred, the framework can continue but it is advisable to restart.
FATAL. An unrecoverable error has occurred and the application will terminate.
comment:3 Changed 5 years ago by zhangjr
logging.loggers.root.level = debug
logging.loggers.root.channel.class = SplitterChannel?
logging.loggers.root.channel.channel1 = consoleChannel
logging.loggers.root.channel.channel2 = fileChannel
logging.channels.consoleChannel.class = ConsoleChannel?
logging.channels.consoleChannel.formatter = f1
logging.channels.fileChannel.class = FileChannel?
logging.channels.fileChannel.path = mantid.log
logging.channels.fileChannel.formatter.class = PatternFormatter?
logging.channels.fileChannel.formatter.pattern = %Y-%m-%d %H:%M:%S,%i [%I] %p %s - %t
logging.formatters.f1.class = PatternFormatter?
logging.formatters.f1.pattern = %s-[%p] %t
logging.formatters.f1.times = UTC
comment:4 Changed 5 years ago by zhangjr
comment:5 Changed 5 years ago by zhangjr
It looks that log is not used in loadCSNSNexus properly.
comment:6 Changed 5 years ago by zhangjr
- Owner changed from somebody to dur
- Status changed from new to assigned
https://stackoverflow.com/questions/35745541/how-to-get-printed-output-from-ctypes-c-functions-into-jupyter-ipython-notebook