A self-contained logger in php