README.md in logdna-1.2.0 vs README.md in logdna-1.3.0

- old
+ new

@@ -48,11 +48,12 @@ :ip => myIpAddress, :mac => myMacAddress, :app => myAppName, :level => "INFO", # LOG_LEVELS = ['TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL'] or your customized log level :env => "PRODUCTION", - :meta => {:once => {:first => "nested1", :another => "nested2"}} + :meta => {:once => {:first => "nested1", :another => "nested2"}}, + :endpoint => "https://fqdn/logs/ingest" } To send logs, use "log" method. Default log level is "INFO" logger.log('This is my first log') @@ -97,11 +98,10 @@ # Important Notes 1. This logger assumes that you pass in json formatted data 2. This logger is a singleton (do not create mutiple instances of the logger) even though the singleton structure is not strongly enforced. - # API ## Logdna::Ruby.new(ingestion_key, options = {}) Instantiates a new instance of the class it is called on. ingestion_key is required. @@ -113,9 +113,10 @@ |{ :ip => IP address } | Nil | |{ :app => App name } | 'default' | |{ :level => Log level } | 'INFO' | |{ :env => STAGING, PRODUCTION .. etc} | Nil | |{ :meta => metadata} | Nil | +|{ :endpoint => LogDNA Ingestion URI | 'https://logs.logdna.com/logs/ingest' | |{ :flushtime => Log flush interval in seconds } | 0.25 seconds | |{ :flushbyte => Log flush upper limit in bytes } | 500000 bytes ~= 0.5 megabytes | Different log level displays log messages in different colors as well. - ![TRACE DEBUG INFO Colors](https://placehold.it/15/515151/000000?text=+) "Trace" "Debug" "Info"