Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Utilities

s2member\includes\classes\utils-logs.inc.php at line #28

Class c_ws_plugin__s2member_utils_logs

c_ws_plugin__s2member_utils_logs

public class c_ws_plugin__s2member_utils_logs

Log utilities.

Since:

3.5


( 1 Field )
Field Summary
public static array Array of log file descriptions.

$log_file_descriptions

Array of log file descriptions.

( 4 Methods )
Method Summary
public static bool

archive_oversize_log_files(bool $stagger)

Archives logs to prevent HUGE files from building up over time.

public static bool

cleanup_expired_s2m_transients(bool $stagger)

Removes expired Transients inserted into the database by s2Member.

public static string

conceal_private_info(string $log_entry)

Attempts to conceal private details in log entries.

public static null

http_api_debug(mixed $response, mixed $state, mixed $class, mixed $args, mixed $url)

Logs HTTP communication (if enabled).

( 1 Field )
Field Detail

s2member\includes\classes\utils-logs.inc.php at line #38

log_file_descriptions

public static array Array of log file descriptions. $log_file_descriptions = array(...)

Array of log file descriptions.

Since:

120214

[ back to top ]

( 4 Methods )
Method Detail

s2member\includes\classes\utils-logs.inc.php at line #106

archive_oversize_log_files()

public static bool archive_oversize_log_files(bool $stagger)

Archives logs to prevent HUGE files from building up over time.

This routine is staggered to conserve resources. This is called by all logging routines for s2Member.

Since:

3.5

Parameters:

bool $stagger - Optional. Defaults to true. If false, the routine will run, regardless.

Returns:

bool - Always returns true.

[ back to top ]

s2member\includes\classes\utils-logs.inc.php at line #146

cleanup_expired_s2m_transients()

public static bool cleanup_expired_s2m_transients(bool $stagger)

Removes expired Transients inserted into the database by s2Member.

This routine is staggered to conserve resources. Only 5 Transients are deleted each time.

This is called by s2Member's Auto-EOT System, every 10 minutes.

Since:

3.5

Parameters:

bool $stagger - Optional. Defaults to true. If false, the routine will run, regardless.

Returns:

bool - Always returns true.

[ back to top ]

s2member\includes\classes\utils-logs.inc.php at line #171

conceal_private_info()

public static string conceal_private_info(string $log_entry)

Attempts to conceal private details in log entries.

Since:

130315

Parameters:

string $log_entry - The log entry we need to conceal private details in.

Returns:

string - Filtered string with some data X'd out :-)

[ back to top ]

s2member\includes\classes\utils-logs.inc.php at line #48

http_api_debug()

public static null http_api_debug(mixed $response, mixed $state, mixed $class, mixed $args, mixed $url)

Logs HTTP communication (if enabled).

Since:

120212

Returns:

null - Nothing.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail