This shortcode allows you to toggle access logging on a site installed on your server. Access logs log all attempts to visit your site by default, you may use this shortcode to enable or disable the access log.
To run Nodalio shortcodes on your server, please follow this guide.
Shortcode usage format:
- sudo nodalio sitelog-access domain.com on
Shortcode reference:
- domain.com – your site’s primary domain/subdomain.
- on – turn on/off your site’s access log.
To toggle the access log on your site’s staging environment, you may use the sitelog-access-staging shortcode.
When adding additional domains or aliases to your site, you will be required to setup logging for each one. The dafault setting is “on”.