you were right. thanks.
I will download the new version and check it .
On Wed, Jun 11, 2008 at 11:41 PM, Kate Ward <kat...@fo...> wrote:
> Hi Amihay,
>
> At first glance, the 's' on the 'log4sh.appender.R.MaxBackupIndex' line
> stands out as that should be an integer value, but '3s' is a string. I will
> setup some unit tests in the next couple of days and see if I can reproduce
> the problem from what you have provided.
>
> Could you try the latest version from Subversion? There have been several
> fixes since this version, but I haven't made a full release yet.
>
>
> http://log4sh.svn.sourceforge.net/svnroot/log4sh/trunk/source/1.5/src/shell/log4sh
>
> - kate
>
>
> On Wed, Jun 11, 2008 at 8:56 PM, amihay gonen <ago...@gm...> wrote:
>
>> hi . no problem.
>> version is 1.5
>>
>> # $Id: log4sh 546 2007-05-07 14:07:29Z sfsetse $
>>
>> uname -a
>> HP-UX pdsrv050 B.11.31 U ia64 3695248653 unlimited-user license
>>
>> a sample script :
>>
>> #!/bin/sh
>> #
>>
>> # find and source log4sh
>> #!/bin/sh
>>
>> # find and source log4sh
>> if [ -r "/fms/failover/log4sh" ]; then
>> LOG4SH_CONFIGURATION="/fms/failover/log4sh.properties"
>> . /fms/failover/log4sh
>> else
>> echo "fatal: could not find log4sh" >&2
>> exit 1
>> fi
>>
>> logger_debug initalize parameters
>>
>> the log4sh.properties is as follow :
>> # Set root logger level to INFO and its only appender to A1
>> log4sh.rootLogger= DEBUG,R,A1
>>
>> # A1 is set to be a ConsoleAppender.
>> log4sh.appender.A1 = ConsoleAppender
>>
>> # A1 uses PatternLayout.
>> log4sh.appender.A1.layout = PatternLayout
>> log4sh.appender.A1.layout.ConversionPattern = %-4r %-5p - %m%n
>> log4sh.appender.A1.Threshold = DEBUG
>>
>> # add a RollingFileAppender named R
>> log4sh.appender.R.layout = PatternLayout
>> log4sh.appender.R.layout.ConversionPattern = %d [%F] %p - %m%n
>> log4sh.appender.R = RollingFileAppender
>> log4sh.appender.R.File = /fms/failover/ectel.log
>> log4sh.appender.R.MaxFileSize = 10MiB
>> log4sh.appender.R.Threshold = DEBUG
>> log4sh.appender.R.MaxBackupIndex = 3s
>>
>>
>> Thanks for your help.
>>
>>
>>
>> On Wed, Jun 11, 2008 at 9:00 PM, Kate Ward <kat...@fo...>
>> wrote:
>>
>>> Hi Amihay,
>>>
>>> If possible, could you send me a copy of your script and I'll take a
>>> look. If that isn't possible, could you grep out the log4sh specific calls
>>> from the script and send those? One last thing would be to know the specific
>>> log4sh version you are using. The first line of log4sh (the $Id line) is all
>>> I need.
>>>
>>> - kate
>>>
>>> amihay gonen wrote:
>>>
>>>> Hi all , first of all , i want to thanks for the great utility.
>>>>
>>>> I got a problem in hpux 11.31 , i want to know if someone has encounter
>>>> similar problem.
>>>>
>>>> I get the following error :
>>>>
>>>> # sh /fms/failover/root.sh
>>>> expr: An integer value was expected.
>>>>
>>>>
>>>> I've traced it down and it come from the command (it is shell script):
>>>>
>>>> . log4sh
>>>>
>>>> any idea ?
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> Check out the new SourceForge.net Marketplace.
>>>> It's the best place to buy or sell services for
>>>> just about anything Open Source.
>>>> http://sourceforge.net/services/buy/index.php
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> log4sh-users mailing list
>>>> log...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/log4sh-users
>>>>
>>>>
>>>
>>>
>>
>
>
> --
> Kate Ward <kat...@fo...>
>
|