Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
prikkprikkprikk authored Sep 4, 2020
1 parent 86c7d97 commit 52e3ecd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# 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);

0 comments on commit 52e3ecd

Please sign in to comment.