You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -15,90 +16,6 @@ function formatLog(log: Record<string, any>): string {
15
16
// Create a single log generator with a fixed seed for consistent examples
16
17
constlogGenerator=newLogGenerator(12345);
17
18
18
-
// Generate information for each log type
19
-
functiongetLogTypeInfo(logType: LogType): {
20
-
title: string;
21
-
description: string;
22
-
configuration_code?: string;
23
-
}|null{
24
-
switch(logType){
25
-
caseLogType.ACTIONMAILER:
26
-
return{
27
-
title: 'ActionMailer Integration',
28
-
description:
29
-
"The ActionMailer integration automatically logs email delivery events and handles errors during email delivery. (If you're still on Rails 7.0.x, it also backports delivery callbacks from Rails 7.1.)",
30
-
};
31
-
32
-
caseLogType.ACTIVEJOB:
33
-
return{
34
-
title: 'ActiveJob Integration',
35
-
description:
36
-
'The ActiveJob integration logs job enqueuing, execution, and completion events with detailed information about the job.',
37
-
};
38
-
39
-
caseLogType.ACTIVESTORAGE:
40
-
return{
41
-
title: 'ActiveStorage Integration',
42
-
description:
43
-
'The ActiveStorage integration logs uploads, downloads, deletes, and other file operations with detailed information about the file and storage service.',
44
-
};
45
-
46
-
caseLogType.CARRIERWAVE:
47
-
return{
48
-
title: 'CarrierWave Integration',
49
-
description:
50
-
'The CarrierWave integration adds structured logging for file upload operations, including file metadata and operation duration.',
51
-
};
52
-
53
-
caseLogType.REQUEST:
54
-
return{
55
-
title: 'Request Logs (via Lograge)',
56
-
description:
57
-
'LogStruct configures Lograge to output request logs in a structured JSON format compatible with the rest of your logs. This includes parameters, response status, controller and action names, and request duration. You can log additional data by configuring a lograge_custom_options handler:',
58
-
configuration_code: 'lograge_custom_options',
59
-
};
60
-
61
-
caseLogType.SECURITY:
62
-
return{
63
-
title: 'Security Logging',
64
-
description:
65
-
'LogStruct includes security-focused logging for Rails applications. This captures security violations like IP spoofing attacks, CSRF token errors, blocked host attempts, and other security-related events.',
66
-
};
67
-
68
-
caseLogType.SHRINE:
69
-
return{
70
-
title: 'Shrine Integration',
71
-
description:
72
-
'The Shrine integration adds structured logging for file uploads and other Shrine operations, including file metadata and operation duration.',
73
-
};
74
-
75
-
caseLogType.SIDEKIQ:
76
-
return{
77
-
title: 'Sidekiq Integration',
78
-
description:
79
-
'The Sidekiq integration configures structured JSON logging for Sidekiq worker and client logs, maintaining consistent format with other logs.',
80
-
};
81
-
82
-
caseLogType.ERROR:
83
-
return{
84
-
title: 'Error Handling',
85
-
description:
86
-
"LogStruct provides structured error logging across your application, capturing error class, message, backtrace, and contextual data for better debugging. (We don't interfere with or replace your existing error reporting library, such as Sentry, Bugsnag, etc.)",
87
-
};
88
-
89
-
caseLogType.PLAIN:
90
-
// Plain logs are not an integration
91
-
returnnull;
92
-
93
-
default:
94
-
logTypesatisfiesnever;
95
-
return{
96
-
title: 'Unknown Integration',
97
-
description: 'No information available for this integration.',
98
-
};
99
-
}
100
-
}
101
-
102
19
exportdefaultfunctionIntegrationsPage(){
103
20
return(
104
21
<divclassName="space-y-6">
@@ -121,12 +38,7 @@ export default function IntegrationsPage() {
0 commit comments