EnglishFrenchSpanish

Ad


OnWorks favicon

fedmsg-logger - Online in the Cloud

Run fedmsg-logger in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command fedmsg-logger that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


fedmsg-logger - simply emit messages from the command-line to the fedmsg bus

SYNOPSIS


fedmsg-logger [--message LOGGER_MESSAGE] [--json-input] [--topic TOPIC] [--modname
MODNAME] [--cert-prefix CERT_PREFIX] [<common fedmsg options>]

fedmsg-logger [-h|--help]

DESCRIPTION


fedmsg-logger is a simple command-line utility to send messages to the fedmsg bus. It is
an ephemeral command, that doesn't bind a 0mq endpoint directly. It sends its messages to
a fedmsg-relay(1) daemon that binds a persistent endpoint that the outside world can
subscribe to. If the fedmsg-relay(1) service is not running at the address specified in
the config, then fedmsg-logger will hang until that service becomes available.

If --message is not specified, this command accepts messages from stdin.

OPTIONS


-h, --help
Print an help message and exit

--message LOGGER_MESSAGE
The message to send.

--json-input
Take each line of input as JSON.

--topic TOPIC
The topic to which the messages are sent. Defaults to log if unset.

--modname MODNAME
The module name to which the messages are sent. Defaults to logger if unset.

--cert-prefix CERT_PREFIX
Specify a different cert from /etc/pki/fedmsg

COMMON FEDMSG OPTIONS


--io-threads IO_THREADS
Number of io threads for 0mq to use

--topic-prefix TOPIC_PREFIX
Prefix for the topic of each message sent.

--post-init-sleep POST_INIT_SLEEP
Number of seconds to sleep after initializing.

--config-filename CONFIG_FILENAME
Config file to use.

--print-config
Simply print out the configuration and exit. No action taken.

--timeout TIMEOUT
Timeout in seconds for any blocking zmq operations.

--high-water-mark HIGH_WATER_MARK
Limit on the number of messages in the queue before blocking.

--linger ZMQ_LINGER
Number of milliseconds to wait before timing out connections.

TOPIC CONSTRUCTION


The full topic to which the messages are sent is constructed from the topic_prefix and
environment set in the fedmsg configuration, and the --topic TOPIC and --modname MODNAME
options this way:

<topic_prefix>.<environment>.MODNAME.TOPIC

CAVEATS


Note that when using --json-input, you must send valid JSON, including the use of double
quotes as opposed to single quotes:

{"a": 1} is valid JSON.

{'a': 1} is invalid JSON.

EXAMPLES


Send a message from standard input in JSON format:
echo '{"a": 1}' | fedmsg-logger --json-input

Send a message to the git.repo.update topic
echo "Hai there." | fedmsg-logger --modname=git --topic=repo.update

Send a simple message:
fedmsg-logger --message="This is a message."

Send a JSON-format message:
fedmsg-logger --message='{"a": 1}' --json-input

Use fedmsg-logger online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Brackets
    Brackets
    Brackets is a free, modern open-source
    text editor made especially for Web
    Development. Written in HTML, CSS, and
    JavaScript with focused visual tools and
    prepr...
    Download Brackets
  • 2
    Free Pascal Compiler
    Free Pascal Compiler
    A 32/64/16-bit Pascal compiler for
    Win32/64/CE, Linux, Mac OS X/iOS,
    Android, FreeBSD, OS/2, Game Boy
    Advance, Nintendo NDS and DOS;
    semantically compatible wi...
    Download Free Pascal Compiler
  • 3
    Canon EOS DIGITAL Info
    Canon EOS DIGITAL Info
    Canon doesn�t have shutter count
    included on the EXIF information of an
    image file, as opposed to Nikon and
    Pentax. There�s no official Canon based
    application ...
    Download Canon EOS DIGITAL Info
  • 4
    rEFInd
    rEFInd
    rEFInd is a fork of the rEFIt boot
    manager. Like rEFIt, rEFInd can
    auto-detect your installed EFI boot
    loaders and it presents a pretty GUI
    menu of boot option...
    Download rEFInd
  • 5
    ExpressLuke GSI
    ExpressLuke GSI
    This SourceForge download page was to
    grant users to download my source built
    GSIs, based upon phhusson's great
    work. I build both Android Pie and
    Android 1...
    Download ExpressLuke GSI
  • 6
    Music Caster
    Music Caster
    Music Caster is a tray music player
    that lets you cast your local music to a
    Google Cast device. On the first run,
    you will need to click the arrow in your
    tas...
    Download Music Caster
  • More »

Linux commands

Ad