public void setType(String type) throws ApplicationException {
	type = type.toLowerCase().trim();
	if (type.equals("information")) this.type = lucee.commons.io.log.Log.LEVEL_INFO;
	else if (type.equals("info")) this.type = lucee.commons.io.log.Log.LEVEL_INFO;
	else if (type.equals("warning")) this.type = lucee.commons.io.log.Log.LEVEL_WARN;
	else if (type.equals("warn")) this.type = lucee.commons.io.log.Log.LEVEL_WARN;
	else if (type.equals("error")) this.type = lucee.commons.io.log.Log.LEVEL_ERROR;
	else if (type.startsWith("fatal")) this.type = lucee.commons.io.log.Log.LEVEL_FATAL;
	else if (type.startsWith("debug")) this.type = lucee.commons.io.log.Log.LEVEL_DEBUG;
	else if (type.startsWith("trace")) this.type = lucee.commons.io.log.Log.LEVEL_TRACE;
	else throw new ApplicationException("invalid value for attribute type [" + type + "]", "valid values are [information,warning,error,fatal,debug]");

    }
public void setType ( String type ) throws ApplicationException { type = type . toLowerCase ( ) . trim ( ) ; if ( type . equals ( "information" ) ) this . type = lucee . commons . io . log . Log . LEVEL_INFO ; else if ( type . equals ( "info" ) ) this . type = lucee . commons . io . log . Log . LEVEL_INFO ; else if ( type . equals ( "warning" ) ) this . type = lucee . commons . io . log . Log . LEVEL_WARN ; else if ( type . equals ( "warn" ) ) this . type = lucee . commons . io . log . Log . LEVEL_WARN ; else if ( type . equals ( "error" ) ) this . type = lucee . commons . io . log . Log . LEVEL_ERROR ; else if ( type . startsWith ( "fatal" ) ) this . type = lucee . commons . io . log . Log . LEVEL_FATAL ; else if ( type . startsWith ( "debug" ) ) this . type = lucee . commons . io . log . Log . LEVEL_DEBUG ; else if ( type . startsWith ( "trace" ) ) this . type = lucee . commons . io . log . Log . LEVEL_TRACE ; else throw new ApplicationException ( "invalid value for attribute type [" + type + "]" , "valid values are [information,warning,error,fatal,debug]" ) ; }
set the value type The type or severity of the message.

@param type value to set
@throws ApplicationException