Page MenuHomeDevCentral

fireDummyLogEntry.tcl
No OneTemporary

fireDummyLogEntry.tcl

#!/usr/bin/env tclsh8.6
package require json::write
package require rest
proc dict2json {dictToEncode} {
::json::write object {*}[dict map {k v} $dictToEncode {
set v [::json::write string $v]
}]
}
proc get_source_script {} {
file tail [info script]
}
rest::simple http://localhost:8000 {} {
method PUT
content-type application/json
format json
} [dict2json "
date [clock seconds]
emitter Tests
source [get_source_script]
component Acme
entry {Something happens.}
"]

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 29, 13:48 (2 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2847258
Default Alt Text
fireDummyLogEntry.tcl (523 B)

Event Timeline