SC_Logger Usage Report (v2 - after error_log replacement)
========================================================

--------------------------------------------------
File: wp-content/plugins/social-connect-pys/includes/classes/class-sc-social-connect.php
--------------------------------------------------
*   Line 165:
    *   Type: system
    *   Level: error
    *   Message: 'setDefaultOptions: file with default settings is empty'
    *   Context: Failed to load or decode `default-settings.json` when trying to set default plugin options.

*   Line 210:
    *   Type: system
    *   Level: error
    *   Message: 'onPluginActivation: file with default settings is empty'
    *   Context: Failed to load or decode `default-settings.json` during plugin activation hook.

--------------------------------------------------
File: wp-content/plugins/social-connect-pys/includes/classes/class-sc-authentication.php
--------------------------------------------------
*   Line 73:
    *   Type: system
    *   Level: error
    *   Message: 'User is not connected'
    *   Context: During the authentication callback/process, the Hybridauth adapter reports the user is not connected to the social provider.

*   Line 86:
    *   Type: system
    *   Level: error
    *   Message: 'User profile is not an object'
    *   Context: The data received from the social provider representing the user's profile is not in the expected object format after authentication.

*   Line 102:
    *   Type: system
    *   Level: error
    *   Message: 'Authenticate process failed - [exception_message]'
    *   Context: A general exception was caught during the `authenticateProcess` method, indicating an unexpected error.

*   Line 140:
    *   Type: system
    *   Level: error
    *   Message: 'logoutProviders: hybridauth is not set'
    *   Context: Attempted to call `logoutProviders`, but the Hybridauth object failed to initialize or is not set.

*   Line 150:
    *   Type: system
    *   Level: error
    *   Message: 'logoutProviders: connectedAdapters is empty'
    *   Context: Called `logoutProviders`, but Hybridauth reports no currently connected adapters to disconnect.

--------------------------------------------------
File: wp-content/plugins/social-connect-pys/includes/classes/class-sc-plugin-license.php
--------------------------------------------------
*   Line 392:
    *   Type: system
    *   Level: error
    *   Message: 'singleCheckLicense: [WP_Error message]'
    *   Context: The `wp_remote_post` call failed during the daily license check.

*   Line 399:
    *   Type: system
    *   Level: error
    *   Message: 'singleCheckLicense: License data is empty'
    *   Context: Received a response during the daily license check, but the decoded body (license data) was empty.

--------------------------------------------------
File: wp-content/plugins/social-connect-pys/includes/admin/functions.php
--------------------------------------------------
*   Line 189:
    *   Type: system
    *   Level: error
    *   Message: 'socplugAjaxSaveSettings: socplug_save_options not valid'
    *   Context: The AJAX request to save settings was received, but the expected 'socplug_save_options' parameter was missing.

*   Line 197:
    *   Type: system
    *   Level: error
    *   Message: 'socplugAjaxSaveSettings: not valid nonce'
    *   Context: The AJAX request to save settings failed nonce verification.

--------------------------------------------------
File: wp-content/plugins/social-connect-pys/includes/woocommerce/coupons.php
--------------------------------------------------
*   Line 88:
    *   Type: system
    *   Level: error
    *   Message: 'socplugShowSocialCouponNotice: Error'
    *   Context: A general exception occurred within the `socplugShowSocialCouponNotice` function, likely related to WC session handling.

*   Line 89:
    *   Type: system
    *   Level: error
    *   Message: '[exception_message]'
    *   Context: The specific message from the exception caught in `socplugShowSocialCouponNotice`.

--------------------------------------------------
File: wp-content/plugins/social-connect-pys/includes/socplug-auth-handler.php
--------------------------------------------------
*   Line 40:
    *   Type: system
    *   Level: error
    *   Message: 'Provider is not set, while trying to login'
    *   Context: Login attempt via handler, but the 'provider' parameter is missing in the request.

*   Line 56:
    *   Type: system
    *   Level: error
    *   Message: 'We have no active providers for login'
    *   Context: Login attempt via handler, but the plugin settings indicate no social providers are enabled or configured.

--------------------------------------------------
File: wp-content/plugins/social-connect-pys/includes/plugin-authentication.php
--------------------------------------------------
*   Line 46:
    *   Type: system
    *   Level: error
    *   Message: 'Provider is not set, while trying to login via social connect'
    *   Context: Login initiated via social connect action, but provider information is missing.

--------------------------------------------------
File: wp-content/plugins/social-connect-pys/includes/plugin-user-avatar.php
--------------------------------------------------
*   Line 79:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: File exists'
    *   Context: Attempting to save a downloaded user avatar, but a file with the same name already exists in the target directory.

*   Line 90:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: Failed to download avatar from: [image_url]'
    *   Context: Failed to fetch the avatar image from the social provider's URL using `wp_safe_remote_get`.

*   Line 91:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: User ID: [user_id]'
    *   Context: User ID associated with the avatar download failure.

*   Line 92:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: Provider: [provider]'
    *   Context: Provider associated with the avatar download failure.

*   Line 106:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: Invalid image type from: [image_url]'
    *   Context: The downloaded avatar file has a MIME type that is not allowed.

*   Line 107:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: User ID: [user_id]'
    *   Context: User ID associated with the invalid avatar type error.

*   Line 108:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: Provider: [provider]'
    *   Context: Provider associated with the invalid avatar type error.

*   Line 118:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: Failed to save avatar'
    *   Context: An error occurred while trying to save the downloaded avatar using `wp_upload_bits`.

*   Line 119:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: User ID: [user_id]'
    *   Context: User ID associated with the avatar saving failure.

*   Line 120:
    *   Type: system
    *   Level: error
    *   Message: 'Upload user avatar: Provider: [provider]'
    *   Context: Provider associated with the avatar saving failure.

--------------------------------------------------
File: wp-content/plugins/social-connect-pys/includes/classes/class-sc-user.php
--------------------------------------------------
*   Line 249:
    *   Type: system
    *   Level: error
    *   Message: 'Update user by profile after auth: User data not found'
    *   Context: After successful social login for an existing user, `wp_update_user` failed (likely returned WP_Error or 0).

*   Line 254:
    *   Type: facebook
    *   Level: info
    *   Message: 'User successfully authorized with Facebook'
    *   Context: An existing user successfully logged in or linked their account using Facebook.

*   Line 255:
    *   Type: facebook
    *   Level: info
    *   Message: 'User ID: [user_id]'
    *   Context: User ID associated with the successful Facebook authorization (existing user).

*   Line 256:
    *   Type: facebook
    *   Level: info
    *   Message: 'Provider: Facebook'
    *   Context: Provider name associated with the successful Facebook authorization (existing user).

*   Line 260:
    *   Type: google
    *   Level: info
    *   Message: 'User successfully authorized with Google'
    *   Context: An existing user successfully logged in or linked their account using Google.

*   Line 261:
    *   Type: google
    *   Level: info
    *   Message: 'User ID: [user_id]'
    *   Context: User ID associated with the successful Google authorization (existing user).

*   Line 262:
    *   Type: google
    *   Level: info
    *   Message: 'Provider: Google'
    *   Context: Provider name associated with the successful Google authorization (existing user).

*   Line 328:
    *   Type: system
    *   Level: error
    *   Message: 'User not found, and user registration is disabled on site'
    *   Context: A user attempted social login, they don't have an existing account, and the WordPress setting 'Anyone can register' is disabled.

*   Line 340:
    *   Type: system
    *   Level: error
    *   Message: 'User not found, and user registration failed'
    *   Context: A user attempted social login, they don't have an existing account, and the subsequent attempt to create a new WordPress user account via `wp_insert_user` failed.

*   Line 356:
    *   Type: facebook
    *   Level: info
    *   Message: 'User successfully authorized with Facebook'
    *   Context: A new user account was successfully created and logged in via Facebook.

*   Line 357:
    *   Type: facebook
    *   Level: info
    *   Message: 'User ID: [user_id]'
    *   Context: User ID of the newly registered user via Facebook.

*   Line 358:
    *   Type: facebook
    *   Level: info
    *   Message: 'Provider: Facebook'
    *   Context: Provider name (Facebook) for the successful new user registration.

*   Line 362:
    *   Type: google
    *   Level: info
    *   Message: 'User successfully authorized with Google'
    *   Context: A new user account was successfully created and logged in via Google.

*   Line 363:
    *   Type: google
    *   Level: info
    *   Message: 'User ID: [user_id]'
    *   Context: User ID of the newly registered user via Google.

*   Line 364:
    *   Type: google
    *   Level: info
    *   Message: 'Provider: Google'
    *   Context: Provider name (Google) for the successful new user registration.

*   Line 437:
    *   Type: system
    *   Level: error
    *   Message: 'Error while registering user'
    *   Context: General error indicating `wp_insert_user` returned a WP_Error object during the `registerUser` method.

*   Line 438:
    *   Type: system
    *   Level: error
    *   Message: '[WP_Error message]'
    *   Context: The specific error message obtained from the WP_Error object returned by `wp_insert_user` during registration.

--------------------------------------------------
NOTE: Calls like `new SC_Logger(...)` within the admin log page (`main.php`) or download handler are for reading/managing logs, not writing new entries, and are excluded. Internal `error_log` calls within `SC_Logger` itself are also excluded as they handle critical internal failures.
--------------------------------------------------
