lcm-logger(1)
π lcm-logger(1) β bestie's guide to the LCM data logger π
okay so this is the manual page for lcm-logger, which lives in the Lightweight Communications and Marshalling (LCM) project, and it's literally just... a data logger. iconic behavior. let's go π«Ά
β¨ NAME β¨
lcm-logger β data logger πΈ
β¨ SYNOPSIS β¨
lcm-logger [options] [FILE]
β¨ DESCRIPTION β¨
so. LCM message logging utility, periodt. π
It subscribes to all channels on an LCM network, and it records all messages received to FILE. And if FILE isn't specified? No stress bestie, a filename gets chosen automatically for you. π
β¨ OPTIONS β¨
The following options are provided by lcm-logger:
-c,--channel=CHANβ Channel string to pass tolcm_subscribe. (default:".*") β so by default it's grabbing literally everything, main character energy π--flush-interval=MSβ Flush the log file to disk every MS milliseconds. (default:100)-f,--forceβ Overwrite existing files. The default behavior is to fail if the output file already exists. so like, it's not being rude, it's just being careful π-h,--helpβ Shows some help text and exits-i,--incrementβ Automatically append a suffix to FILE such that the resulting filename does not already exist. This option precludes-fand--rotate. (they do not vibe together, pick a lane π)-l,--lcm-url=URLβ Log messages on the specified LCM URL-m,--max-unwritten-mb=SIZEβ Maximum size of received but unwritten messages to store in memory before dropping messages. (default:100 MB)--rotate=NUMβ When creating a new log file, rename existing files out of the way and always write toFILE.0. IfFILE.0already exists, it is renamed toFILE.1. IfFILE.1exists, it is renamed toFILE.2, etc. IfFILE.NUMexists, then it is deleted. This option precludes-i.--split-mb=Nβ Automatically start writing to a new log file once the log file exceeds N MB in size (can be fractional). This option requires-ior--rotate.-q,--quietβ Suppress normal output and only report errors.-s,--strftimeβ Format FILE withstrftime.-v,--invert-channelsβ Invert channels. Log everything that CHAN does not match. β¨
π ROTATING AND SPLITTING π
okay this part is for the long-haul girlies π§
For long-term logging, lcm-logger can rotate through a fixed number of log files, moving to a new log file as existing files reach a maximum size. To do this, use --rotate and --split-mb. For example:
# Rotate through logfile.0, logfile.1, ... logfile.4
lcm-logger --rotate=5 --split-mb=2 logfile
Moving to a new file happens either when the current log file size exceeds the limit specified by --split-mb, or when lcm-logger receives a SIGHUP.
π‘ SIGNALS π‘
On platforms defining SIGHUP, lcm-logger will react to HUP by closing the active log file and opening a new one. she heard the signal and she MOVED π₯
π SEE ALSO π
π COPYRIGHT π
lcm-logger is part of the Lightweight Communications and Marshalling (LCM) project. Permission is granted to copy, distribute and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. See the file COPYING in the LCM distribution for more details regarding distribution.
LCM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with LCM; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
no cap, read the license. it's giving legally binding bestie π
βοΈ AUTHOR βοΈ
This manual page was written by Albert Huang. π«Ά
aaaand that's the whole page!! this one came from the LCM project, version stamped 2009-07-28, and it's the lcm-logger(1) manual β so if you're reading this in the year of our lord 2009, hiiii. anyway go log some messages, you ate ππΈβ¨ππ¦
π¦ where this page comes from
- ubuntu noble: liblcm-bin 1.5.0~repack1-0ubuntu1 Β· LGPL-2.1-or-later
- ubuntu questing: liblcm-bin 1.5.0~repack1-0ubuntu2
- ubuntu resolute: liblcm-bin 1.5.0~repack1-0ubuntu4 Β· LGPL-2.1-or-later
- ubuntu stonking: liblcm-bin 1.5.0~repack1-0ubuntu4 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms