[Log4sh-users] rollingfileappender maxfilesize unit bug
Brought to you by:
sfsetse
From: Steve E. <set...@gm...> - 2007-04-17 02:39:35
|
Version 1.4.0 Line 1987 requires that the units indicator be either 2 or 3 chars long. This precludes the 'B' (byte) unit. Also line 1987 seems to imply support for whitespace between the value and the units but lines 1976 and 1982 don't allow this. 1974 appender_file_setMaxFileSize() 1975 { 1976 if [ $# -ne 2 ]; then 1977 _log4sh_error "appender_file_setMaxFileSize(): invalid number of parameters ($#)" 1978 return ${__LOG4SH_FALSE} 1979 fi 1980 1981 afsmfs_appender=$1 1982 afsmfs_size=$2 1983 __log4sh_return=${__LOG4SH_TRUE} 1984 1985 # split the file size into parts 1986 afsmfs_value=`expr ${afsmfs_size} : '\([0-9]*\)'` 1987 afsmfs_unit=`expr ${afsmfs_size} : '[0-9]* *\([A-Za-z]\{2,3\}\)'` |