-
I can run the simple IOC example (shown below) without any problems. from caproto.server import PVGroup, ioc_arg_parser, pvproperty, run
class SimpleIOC(PVGroup):
A = pvproperty(value=1, doc="An integer")
B = pvproperty(value=2.0, doc="A float")
C = pvproperty(value=[1, 2, 3], doc="An array of integers (max length 3)")
if __name__ == "__main__":
ioc_options, run_options = ioc_arg_parser(default_prefix="simple:", desc="Example")
ioc = SimpleIOC(**ioc_options)
run(ioc.pvdb, **run_options) This outputs the following in the terminal:
I would like to run this example without using the from caproto.server import PVGroup, pvproperty, run
class SimpleIOC(PVGroup):
A = pvproperty(value=1, doc="An integer")
B = pvproperty(value=2.0, doc="A float")
C = pvproperty(value=[1, 2, 3], doc="An array of integers (max length 3)")
if __name__ == "__main__":
ioc = SimpleIOC("simple")
run(ioc.pvdb) How can I run the IOC server without the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The logger handlers are set up at caproto/caproto/server/server.py Lines 2182 to 2211 in 46020e4 caproto/caproto/server/server.py Lines 2250 to 2253 in 46020e4 If you want the logging that is the logic / configuration you will need to extract and run some other way. My counter question is why do you not want to use caproto/caproto/ioc_examples/formula_ioc.py Lines 153 to 171 in 46020e4 -vvvv to see what is going !) without much extra work.
|
Beta Was this translation helpful? Give feedback.
The logger handlers are set up at
caproto/caproto/server/server.py
Lines 2182 to 2211 in 46020e4