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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Support for larger messages in IOC Error Logging facility |
From: | Andrew Johnson <[email protected]> |
To: | "J. Lewis Muir" <[email protected]> |
Cc: | [email protected] |
Date: | Wed, 08 Nov 2006 16:11:15 -0600 |
To make it work from iocsh, I needed to make iocsh aware of this new errlogInit2 function so I modified
src/iocsh/iocCoreLimitsRegister.c
Here are the results of my tests. When I refer to the number of characters, I am including the terminating null character in the count.
1. errlogInit2(1280, 1024)
Tried writing 1025 characters via errlogPrintf: ?: Wrote full message on IOC console. I was a little surprised by this, but maybe this is the expected behavior.
2. errlogInit2(20000, 2050)
Tried writing 1026 characters via errlogPrintf: OK: Wrote full message on IOC console. ?: Wrote full message in iocLogServer output, but as two entries (i.e. two timestamped entries with the first entry containing the first 1024 characters and the second entry containing the 1025th character). I think this might be because iocLogServer handles input 1024 characters at a time. This behavior is OK with me, but even nicer would be for it to handle messages longer than 1024 characters by not splitting them into multiple entries.
Thanks again for making the change and being willing to get this into a future release!
- Andrew -- There is considerable overlap between the intelligence of the smartest bears and the dumbest tourists -- Yosemite National Park Ranger