         return @_http_request uri, data, request_method, callback, binary_data_params
 
 class SailthruClient
-    ###
-    By default enable logging
-    ###
-    @logging = true
+    @logging: true # By default enable logging
 
     constructor: (@api_key, @api_secret, @api_url = false) ->
         @api_url = 'https://api.sailthru.com' if @api_url is false
         @request = new SailthruRequest
 
 
-    log2 = (string) ->
+    log2: (string) ->
         log string if @logging is true
 
     ###


        (json_payload[param] = value for param, value of binary_data)

        log2 _url.href + action
        log2 'MultiPart Request'
        log2 'JSON Payload: ' + JSON.stringify json_payload

        rest.post(_url.href + action, {
            multipart: true,
            'User-Agent': @request.@user_agent,
            data: json_payload
        }).on 'complete', (data) ->
            callback null, data

                # handle error
                return false

        @log2 method + ' Request'

        req = http_protocol.request options, (res) ->
            body = ''
            res.setEncoding 'utf8'
            statusCode = res.statusCode
            @log2 'Status Code: ' + res.statusCode
            res.on 'data', (chunk) ->
                body += chunk
            res.on 'end', ->
