11. Global Logging System == Scroll to Down To See Info

Document Contents

Section Links

MESSAGE CATEGORIES AND OPERATIONS

SYSTEM MESSAGES:

INFO: General information messages
DEBUG: Debug information for troubleshooting
WARNING: Non-critical issues that don't stop operations
ERROR: Critical errors that prevent operations from completing
SUCCESS: Successful operation completions

PROJECT MANAGEMENT MESSAGES:

PROJECT_LOAD: "Loading project: [project_name]"
PROJECT_CREATE: "Creating new project: [project_name]"
PROJECT_SAVE: "Saving project configuration"
PROJECT_SELECT: "Project selected: [project_name]"
PROJECT_VALIDATION: "Validating project settings"

FTP/SFTP CONNECTION MESSAGES:

CONNECT: "Connecting to [protocol]://[host]:[port]"
DISCONNECT: "Disconnecting from server"
AUTH_SUCCESS: "Authentication successful for user [username]"
AUTH_FAIL: "Authentication failed for user [username]"
CONNECTION_TEST: "Testing connection to server"
CONNECTION_STATUS: "Connection status: [connected/disconnected]"

FILE OPERATIONS MESSAGES:

UPLOAD_START: "Starting upload of [file_count] files"
UPLOAD_SUCCESS: "Successfully uploaded [filename] to [remote_path]"
UPLOAD_FAIL: "Failed to upload [filename] - [error_details]"
DOWNLOAD_START: "Starting download from [remote_path]"
DOWNLOAD_SUCCESS: "Successfully downloaded [filename] to [local_path]"
DOWNLOAD_FAIL: "Failed to download [filename] - [error_details]"

PERMISSION MANAGEMENT MESSAGES:

PERMISSION_SET: "Setting permissions [permission_value] for [file_path]"
PERMISSION_SUCCESS: "Successfully set permissions [permission_value] for [file_path]"
PERMISSION_FAIL: "Failed to set permissions [permission_value] for [file_path] - [error_details]"
PERMISSION_CHECK: "Checking current permissions for [file_path]"
PERMISSION_REVERT: "Reverting [file_path] to default 644 permissions"

FOLDER OPERATIONS MESSAGES:

DIRECTORY_CREATE: "Creating remote directory: [directory_path]"
DIRECTORY_EXISTS: "Remote directory exists: [directory_path]"
DIRECTORY_FAIL: "Failed to create directory [directory_path] - [error_details]"
FOLDER_SYNC: "Synchronizing folder structure"

BACKUP OPERATIONS MESSAGES:

BACKUP_START: "Starting backup operation"
BACKUP_SUCCESS: "Backup completed successfully: [backup_file]"
BACKUP_FAIL: "Backup failed - [error_details]"
BACKUP_DOWNLOAD: "Downloading backup from server"
BACKUP_LOCAL: "Creating local project backup"

SKIP OPERATIONS MESSAGES:

SKIP_ADD: "Adding [file_path] to skip list"
SKIP_REMOVE: "Removing [file_path] from skip list"
SKIP_CLEAR: "Clearing all skip entries"
SKIP_APPLY: "Applying skip settings to upload"

HISTORY TRACKING MESSAGES:

UPLOAD_HISTORY: "Adding upload record to project file"
DOWNLOAD_HISTORY: "Adding download record to project file"
PERMISSION_HISTORY: "Adding permission change record"
HISTORY_CLEANUP: "Cleaning up old history records"

ERROR AND WARNING MESSAGES:

FILE_NOT_FOUND: "File not found: [file_path]"
PATH_INVALID: "Invalid path: [path_details]"
PERMISSION_DENIED: "Permission denied accessing [resource]"
CONNECTION_TIMEOUT: "Connection timeout to [host]:[port]"
SERVER_UNAVAILABLE: "Server unavailable: [host]"
INVALID_CONFIG: "Invalid configuration: [details]"

STATUS MESSAGES:

OPERATION_START: "Starting [operation_name] operation"
OPERATION_COMPLETE: "[operation_name] completed successfully"
OPERATION_CANCELLED: "[operation_name] cancelled by user"
PROGRESS_UPDATE: "Progress: [current]/[total] - [percentage]%"

SPECIALIZED MESSAGES:

FOLDER_PERMISSION_CHECK: "Checking folder permissions for [directory_path]"
FOLDER_PERMISSION_APPLY: "Applying folder permissions [permission_value] to [directory_path]"
FOLDER_PERMISSION_DEFAULT: "Setting default 755 permissions for [directory_path]"
PROJECT_FILE_UPDATE: "Updating project file with new settings"

MESSAGE FORMAT STRUCTURE

Block headers include timestamps, for example:
2026-02-07 12:00:00 = INFO = === OPERATION STARTED ===
Detail lines use category prefix only:
INFO = message
SUCCESS = message
WARNING = message
ERROR = message

EXAMPLES

2026-02-07 12:00:00 = INFO = === PROJECT LOAD STARTED ===
INFO = Project file: serverdbadminsetup.txt
INFO = Remote path: /var/www/html/
SUCCESS = /index.php uploaded

LOG FILE STRUCTURE

Separate log files per project in PROJECTSLOGS folder
Daily log rotation
Structured format for easy parsing
Timestamped entries
Categorized messages