Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/k/a/karesansui-HEAD/karesansui/lib/collectd/config.py   karesansui(Download)
from karesansui.lib.utils import preprint_r
from karesansui.lib.collectd.utils import create_plugin_selector, plugin_selector_to_dict
from karesansui.lib.const import VENDOR_PREFIX, KARESANSUI_PREFIX, \
                                 VENDOR_DATA_DIR, \
                                 COUNTUP_DATABASE_PATH, COLLECTD_LOG_DIR, \
 
    keys = _keys + ["Module","notification","LogFile"]
    value = "\"%s/notification.log\"" % COLLECTD_LOG_DIR
    dop.cdp_set("collectdplugin",keys,value,multiple_file=True)
 
 
    keys = _keys + ["File"]
    value = "\"%s/collectd.log\"" % COLLECTD_LOG_DIR
    dop.cdp_set("collectdplugin",keys,value,multiple_file=True)
 

src/k/a/karesansui-HEAD/karesansui/lib/collectd/action/log.py   karesansui(Download)
import time
from karesansui.lib.collectd.utils import append_line
from karesansui.lib.const import COLLECTD_LOG_DIR
 
TIMESTAMP_FORMAT = "syslog"
TIMESTAMP_FORMAT = "Y-m-d"
 
COLLECTD_ALERT_LOG = "%s/alert.log" % COLLECTD_LOG_DIR