Error logging options or a simple string message for backward compatibility
// Simple string message
LogErrorEx('Something went wrong');
// With error object and metadata
LogErrorEx({
message: 'Failed to process request',
error: new Error('Network timeout'),
severity: 'critical',
category: 'NetworkError',
metadata: {
url: 'https://api.example.com',
timeout: 5000
}
});
// With additional arguments (varargs)
LogErrorEx({
message: 'Multiple values failed',
additionalArgs: [value1, value2, value3]
});
Enhanced error logging function with structured error information.
Provides rich error logging capabilities including severity levels, categories, error objects with stack traces, metadata, and varargs support.