-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86c7d97
commit 52e3ecd
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |