boolean useProxyAddressPolicy = context.getUseProxyPreference( false ); setPreferProxiedForAddress( useProxyAddressPolicy );
boolean cookiesPolicy = context.getLogCookies( false ); setLogCookies( cookiesPolicy );
    public NCSARequestLog( Context context )    {        boolean append = context.getAppend( false );        setAppend( append );        boolean extended = context.getExtended( false );        setExtended( extended );        boolean preferProxiedFor = context.getPreferProxiedForAddress( false );        setPreferProxiedForAddress( preferProxiedFor );        String filename = context.getFilename( null );        if( filename != null )        {            filename = PropertyResolver.resolve( System.getProperties(), filename );            File file = new File( filename );            File parent = file.getParentFile();            parent.mkdirs();            setFilename( filename );        }        String dateformat = context.getLogDateFormat( null );        if( dateformat != null )        {            setLogDateFormat( dateformat );        }        String[] ignorepaths = context.getIgnorePaths( null );        if( ignorepaths != null )        {            setIgnorePaths( ignorepaths );        }        String timezone = context.getLogTimeZone( null );        if( timezone != null )        {            setLogTimeZone( timezone );        }        int retain = context.getRetainDays( -1 );        if( retain > 0 )        {            setRetainDays( retain );        }                boolean recordLatencyPolicy = context.getLogLatency( false );        setLogLatency( recordLatencyPolicy );                boolean useProxyAddressPolicy = context.getUseProxyPreference( false );        setPreferProxiedForAddress( useProxyAddressPolicy );    }