07-29-2014
I have some configuration file that tell me the following about the logger settings:
I just discovered that these tapes may use CRC- based framing
Last edited by NICEPeppino; 07-31-2014 at 04:30 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi, (HP-UX 11.11)
I need to create a tape image of an igniteUX image created on our igniteUX server.
That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies
2. UNIX for Dummies Questions & Answers
Hi, I'm using putty and when I try to write ü it writes | (or when I try to write é , it writes i)
I tried to change settings/translation of putty but with no success
I have KSH
# locale
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"... (3 Replies)
Discussion started by: palmer18
3 Replies
3. Shell Programming and Scripting
Hi All,
I want to do URL encoding using shell script in my project. I decided that the sed is the correct tool to do this. But I am unable achieve what I wanted using sed. kindly help me to get rid of this.
My requirement is , there will be one URL with all special character, spaces etc...
... (8 Replies)
Discussion started by: Vichu
8 Replies
4. Shell Programming and Scripting
hi folks ,
I have a shell script which contain SQL query that dump some data from the DB in arabic and this data is written to a file in unix machine but the problem that the arabic data is appear like ??????????|111|???????? even when I move it to my windows XP machine.
Any one have an Idea... (2 Replies)
Discussion started by: habuzahra
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Where can I find the encoding type in a unix server ?
Thanks in advance !!! (1 Reply)
Discussion started by: risshanth
1 Replies
6. Shell Programming and Scripting
Hi experts,
I have a gz file from other system(solaris), which is ftped to our system(solaris).
After gunzip, the file is a xml file and we are using ORACLE built in xml transformiing tool ORAXSL to transform XML to TXT.
Now the issue is we come accross issue regarding UTF8 as below:... (1 Reply)
Discussion started by: summer_cherry
1 Replies
7. Shell Programming and Scripting
Hi,
I am beginner to Unix.
My requirement is to validate the encoding used in the incoming file(csv,txt).If it is encoded with UTF-8 format,then the file should remain as such otherwise i need to chnage the encoding to UTF-8.
Please advice me how to proceed on this. (7 Replies)
Discussion started by: cnraja
7 Replies
8. Solaris
Hi All,
Hope you can help me with the below :).
I'm working on a script on SUN solaris and I'm facing a problem with the number encoding as shown below,
1 is encoded to 31 (this is ASCII so it's ok)
11 is encoded as B118 !!! don't know why
111 is encoded as B1580C !!! don't know why ... (4 Replies)
Discussion started by: /dev/bag
4 Replies
9. Shell Programming and Scripting
Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (6 Replies)
Discussion started by: kylle345
6 Replies
10. Solaris
Hi all!!
I´m using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . I´m expecting / looking an output as UTF8 or ANSI / ASCII
Is there command to display the files encoding?
Thank you! (2 Replies)
Discussion started by: mrreds
2 Replies
LEARN ABOUT MOJAVE
loggerutils
logger::utils(n) Object Oriented logging facility logger::utils(n)
__________________________________________________________________________________________________________________________________________________
NAME
logger::utils - Utilities for logger
SYNOPSIS
package require Tcl 8.4
package require logger::utils ?1.3?
::logger::utils::createFormatCmd formatString
::logger::utils::createLogProc -procName procName ?options...?
::logger::utils::applyAppender -appender appenderType ?options...?
::logger::utils::autoApplyAppender command command-string log op args...
_________________________________________________________________
DESCRIPTION
This package adds template based appenders.
::logger::utils::createFormatCmd formatString
This command translates formatString into an expandable command string. The following strings are the known substitutions (from
log4perl) allowed to occur in the formatString:
%c Category of the logging event
%C Fully qualified name of logging event
%d Current date in yyyy/MM/dd hh:mm:ss
%H Hostname
%m Message to be logged
%M Method where logging event was issued
%p Priority of logging event
%P Pid of current process
::logger::utils::createLogProc -procName procName ?options...?
This command ...
-procName procName
The name of the procedure to create.
-conversionPattern pattern
See ::logger::utils::createFormatCmd for the substitutions allowed in the pattern.
-category category
The category (service).
-priority priority
The priority (level).
-outputChannel channel
channel to output on (default stdout)
::logger::utils::applyAppender -appender appenderType ?options...?
This command will create an appender for the specified logger services. If no service is specified then the appender will be added
as the default appender for the specified levels. If no levels are specified, then all levels are assumed.
-service loggerservices
-serviceCmd loggerserviceCmds
Name of the logger instance to modify. -serviceCmd takes as input the return of logger::init.
-appender appenderType
Type of the appender to use. One of console, colorConsole.
-conversionPattern pattern
See ::logger::utils::createFormatCmd for the format of the pattern. If this option is not provided the default pattern
[%d] [%c] [%M] [%p] %m
is used.
-levels levelList
The list of levels to apply this appender to. If not specified all levels are assumed.
Example of usage:
% set log [logger::init testLog]
::logger::tree::testLog
% logger::utils::applyAppender -appender console -serviceCmd $log
% ${log}::error "this is an error"
[2005/08/22 10:14:13] [testLog] [global] [error] this is an error
::logger::utils::autoApplyAppender command command-string log op args...
This command is designed to be added via trace leave to calls of logger::init. It will look at preconfigured state (via ::log-
ger::utils::applyAppender) to autocreate appenders for newly created logger instances. It will return its argument log.
Example of usage:
logger::utils::applyAppender -appender console
set log [logger::init applyAppender-3]
${log}::error "this is an error"
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category logger
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
KEYWORDS
appender, logger
CATEGORY
Programming tools
COPYRIGHT
Copyright (c) 2005 Aamer Akhter <aakhter@cisco.com>
log 1.3 logger::utils(n)