         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
 
     ###

###
class SailthruRequest

    @user_agent = 'Sailthru API Node/JavaScript Client'

    valid_methods = ['GET', 'POST', 'DELETE']

    _http_request: (uri, data, method, binary_data_params, callback) ->
        # support callback function as fourth arg

        return @request._api_request _url.href + action, json_payload, method, callback

    enableLogging: ->
        @request.logging = true
        @logging = true
        return

    disableLogging: ->
        @request.logging = false
        @logging = false
        return

