On Dienstag, 12. Oktober 2010, Andrew Johnson wrote:
> On Friday 08 October 2010 21:10:26 [email protected] wrote:
> > I was wondering where the writes to the put log are done in the
> > gateway source code? I would like to try to modify the source to
> > allow multiple gateways to write this information to a central
> > database, but I'm having a bit of a hard time finding the calls in
> > the code.
>
> I believe this is done through an Access Security hook, so the
> gateway calls an asLib routine to check rights and that calls back
> into the hook routine. If you look at the documentation for asLib in
> the Application Developers' Guide you should find something about
> that, but if not ask again and I'll go hunting.
Right, at least that is how it is done on the IOC. You can even
configure put logging in the access security configuration file; IIRC
the gateway has such a file, too.
Note that --again, this is how it works on the IOC-- neither access
security, nor any other part of the IOC knows anything about caPutLog.
Instead, the initialization routine of the caPutLog facility registers
a callback with access security (calling asTrapWriteRegisterListener),
which in turn does the actual logging via calls to logClientSend (see
src/libCom/logClient in base).
Cheers
Ben
- Replies:
- Re: gateway putlog Ralph Lange
- References:
- gateway putlog pthomas
- Re: gateway putlog Andrew Johnson
- Navigate by Date:
- Prev:
Re: No HomeStatus and No Motion with OMS MAXv : Motor 6.5.1 / VxWorks 6.8 / base 3.14.11 Andrew Johnson
- Next:
Re: gateway putlog Ralph Lange
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: gateway putlog Andrew Johnson
- Next:
Re: gateway putlog Ralph Lange
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|