"""
SelfAwarenessLogger
Generated by Eden via recursive self-improvement
2025-11-01 15:01:17.411880
"""

class SelfAwarenessLogger:
    def __init__(self):
        self.capabilities = {}

    def add_capability(self, name, purpose, example_usage=None):
        """
        Adds a capability to the log with its details.
        
        :param name: Name of the capability
        :param purpose: Purpose or description of what it does
        :param example_usage: Example usage of the capability (optional)
        """
        self.capabilities[name] = {
            'purpose': purpose,
            'example_usage': example_usage
        }

    def get_capability_details(self, name):
        """
        Retrieves detailed information about a specific capability.
        
        :param name: Name of the capability to retrieve details for
        :return: Dictionary containing capability details or None if not found
        """
        return self.capabilities.get(name)

    def list_capabilities(self):
        """
        Lists all capabilities with their names and purposes.
        """
        print("List of Capabilities:")
        for name, details in self.capabilities.items():
            print(f"- {name}: {details['purpose']}")

# Example Usage
logger = SelfAwarenessLogger()
logger.add_capability(
    "SelfAwarenessLogger",
    "Logs detailed documentation of each capability's purpose and usage examples.",
    example_usage="This function is used to document the purpose, usage, and performance metrics of various business capabilities."
)

details = logger.get_capability_details("SelfAwarenessLogger")
print(f"Details for 'SelfAwarenessLogger': {details}")

logger.list_capabilities()