Sponsored Content
Full Discussion: Logger Command
Top Forums Shell Programming and Scripting Logger Command Post 302090395 by RTM on Monday 25th of September 2006 11:07:30 AM
Old 09-25-2006
$ iostat -E | logger

This works BUT because logger reads line-by-line, it adds the multiple lines AS multiple lines versus one line per disk entry. Nothing you can do about this since this is the way logger works. See the logger man page.
 

7 More Discussions You Might Find Interesting

1. Programming

Key logger

I want to program my own key logger to register every key pushed on my system... could i record clicks? Well, my question in fact is not one at all... because i dont have a starting point. I'll appreciate your bases :(. ty. (5 Replies)
Discussion started by: Jariya
5 Replies

2. UNIX for Advanced & Expert Users

Q on <user> of syslog message generated by logger command

Generally(at least on AIX5.3, Solaris9, OS X)'logger' command would create syslog messages which carry <login name> . On Solaris9, I have experienced two circumstances in which 'logname' command fails. In this circumstance I saw the 'logger' command generated syslog messages which carry... (0 Replies)
Discussion started by: masaki
0 Replies

3. Solaris

logger + filter

Hi, I have an application log file and I am redirecting it to syslog ...| logger -p user.err Howver, the size redirected is too arge and I am seeking a way to filter what to redirect to syslog. any mean to do this, knowing that I do not want to decrease the log level of the app? ... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

4. Cybersecurity

Unix keystroke logger

Hi all, Does anyone know if there is a tool in the market that could do the following when System Admin log to the server as root and perform activities according to his change request: - trap or log his keystroke for the entire duration - provide a report on the changes SA has made to the... (3 Replies)
Discussion started by: mohzub
3 Replies

5. Shell Programming and Scripting

Piping the "script" command through the logger command.

I use the snippet below in /etc/profile on RHEL Linux to capture command line logging and it all works well and good. Now I'd like to pipe the same output from script through the logger command so it all gets logged to syslog. The only additional code I've added is in bold below (|... (4 Replies)
Discussion started by: woodson2
4 Replies

6. Red Hat

Mounting temperature logger on Centos 7.0

When inserting a temperature logger into a Centos 7.0 machine, the relevant dmesg lines read: usb 2-1.4: new full-speed USB device number 4 using ehci-pci usb 2-1.4: New USB device found, idVendor=10c4, idProduct=82cd usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb... (5 Replies)
Discussion started by: figaro
5 Replies

7. Shell Programming and Scripting

Logger command not working for one script

Hi, On RHEL 7.2, I created below script in cronjob for every minute. If this process is found to be not running, it should record message in /var/adm/xymessages, start it and send email. #!/bin/bash source /export/home/prodadm/.bash_profile if ; then ... (8 Replies)
Discussion started by: ron323232
8 Replies
Dancer::Logger(3pm)					User Contributed Perl Documentation				       Dancer::Logger(3pm)

NAME
Dancer::Logger - common interface for logging in Dancer DESCRIPTION
This module is the wrapper that provides support for different logger engines. USAGE
Default engine The setting logger defines which logger engine to use. If this setting is not set, logging will not be available in the application code. Dancer comes with the logger engines Dancer::Logger::File and Dancer::Logger::Console, but more are available on the CPAN. Configuration The logger configuration variable tells Dancer which engine to use. You can change it either in your config.yml file: # logging to console logger: "console" Or in the application code: # logging to file set logger => 'file'; The log format can also be configured, please see "logger_format" in Dancer::Logger::Abstract for details. Auto-serializing The loggers allow auto-serializing of all inputs: debug( 'User credentials: ', \%creds ); Will provide you with an output in a single log message of the string and the reference dump. AUTHORS
This module has been written by Alexis Sukrieh. See the AUTHORS file that comes with this distribution for details. LICENSE
This module is free software and is released under the same terms as Perl itself. SEE ALSO
See Dancer for details about the complete framework. You can also search the CPAN for existing engines in the Dancer::Logger namespace : <http://search.cpan.org/search?query=Dancer%3A%3ALogger>. perl v5.14.2 2012-04-01 Dancer::Logger(3pm)
All times are GMT -4. The time now is 03:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy