Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

Different output of rosconsole message using ROSCONSOLE_FORMAT environmental variable #876

@wkentaro

Description

@wkentaro

Refering to http://wiki.ros.org/rosconsole#Console_Output_Formatting, it says the default value is

export ROSCONSOLE_FORMAT='[${severity}] [${time}]: ${message}'

But the outputs are different

% export ROSCONSOLE_FORMAT='[${severity}] [${time}]: ${message}'

% python spam.py 
[INFO] [1472113962.464240]: a
[WARN] [1472113962.464692]: a
[FATAL] [1472113962.465004]: a
[ERROR] [1472113962.465293]: a
[INFO] [1472113962.465572]: a
[WARN] [1472113962.465838]: a
[ERROR] [1472113962.466106]: a
[FATAL] [1472113962.466405]: a
[INFO] [1472113962.466765]: a
[WARN] [1472113962.467037]: a
[ERROR] [1472113962.467304]: a
[FATAL] [1472113962.467577]: a
% unset ROSCONSOLE_FORMAT 

% python spam.py         
[INFO] [WallTime: 1472113988.890666] a
[WARN] [WallTime: 1472113988.891116] a
[FATAL] [WallTime: 1472113988.891413] a
[ERROR] [WallTime: 1472113988.891683] a
[INFO] [WallTime: 1472113988.891950] a
[WARN] [WallTime: 1472113988.892203] a
[ERROR] [WallTime: 1472113988.892459] a
[FATAL] [WallTime: 1472113988.892712] a
[INFO] [WallTime: 1472113988.893018] a
[WARN] [WallTime: 1472113988.893272] a
[ERROR] [WallTime: 1472113988.893521] a
[FATAL] [WallTime: 1472113988.893764] a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions