Samudra Log

Samudra Log Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 487 downloads
Samudra Log Icon

Try plugin: Samudra Log

We'll create fresh WordPress site with Samudra Log installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Samudra Log

Write log for debugging Wordpress site.

0


0


0


0


0

updated: 3 years ago
since: 4 years ago
author: Kasmin

Description

Write log for debugging WordPress site.

How to Use?

Use this function to write log.

// Variable value can be string, array, or object
$variable = 'Variable value';

// Log file will be in /wp-content/plugins/samudra-log/log/sd_log.log
sd_log($variable);

// Log file will be in /wp-content/plugins/samudra-log/log/my-file.log
sd_log($variable, 'my-file');

Restrict direct access to log file

If you are using Nginx, put this code inside your server block.

location ~ /wp-content/plugins/samudra-log/log/.*\.log$ {
    deny all;
    return 404;
}