Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10813192
fireDummyLogEntry.tcl
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
523 B
Referenced Files
None
Subscribers
None
fireDummyLogEntry.tcl
View Options
#!/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
Details
Attached
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)
Attached To
Mode
rAPISRVLOGS Servers log :: Add new entries API
Attached
Detach File
Event Timeline
Log In to Comment