Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for accessLogJSONFormatters (0.33 sec)

  1. pilot/pkg/model/telemetry_logging.go

    	}
    
    	formatters := accessLogJSONFormatters(jsonLogStruct)
    	return &fileaccesslog.FileAccessLog_LogFormat{
    		LogFormat: &core.SubstitutionFormatString{
    			Format: &core.SubstitutionFormatString_JsonFormat{
    				JsonFormat: jsonLogStruct,
    			},
    			JsonFormatOptions: &core.JsonFormatOptions{SortProperties: false},
    		},
    	}, formatters
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. pilot/pkg/model/telemetry_logging_test.go

    				},
    			},
    			expected: []*core.TypedExtensionConfig{
    				celFormatter,
    			},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			got := accessLogJSONFormatters(tc.json)
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    }
    
    func TestAccessLogTextFormatters(t *testing.T) {
    	cases := []struct {
    		name     string
    		text     string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top