Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 350 Bytes

README.md

File metadata and controls

18 lines (10 loc) · 350 Bytes

floggit

Easier logging to debug.log in WordPress.

Handles an arbitrary number of arguments.

Uses print_r to pretty print arrays and objects.

Also logs time stamp, file name and line number.

Usage

Add to debug.log:

loggit("Things", $to_log);

Delete existing contents of debug.log for this session:

floggit("Things", $to_log);