Sun C++ 5.0 question: ambiguity of mbstate_t

Dear Sun C++ users,
I recently installed Sun C++ 5.0 on my Solaris 8 machine.
The following simple example:
#include <iostream>
int main()
std::cout << "Hello, World!" << std::endl;
should compile under Sun's CC version 5.0, but it complains as follows:
$ CC -o test test.cc
"/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for mbsta\te_t.
"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51: Error: The name mbstate_t i\s ambiguous, std::mbstate_t and std::mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 78: Error: The name mbstate_t i\s ambiguous, std::mbstate_t and std::mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 56: Error: The name mbstate_\t is ambiguous, std::mbstate_t and std::mbstate_t.
4 Error(s) detected.
If I modify this code to:
#include <iostream.b>
int main()
cout << "Hello, World!" << endl;
it produce the same errors.
If I compile the above modified code with -compat=4 flag,
$ CC -compat=4 -o test test.cc
Then it works.
I really would like to know what is wrong with the version 5.
Any help is greatly appreciated.
Best regards,
Naoki Saito (UC Davis)

I am currently having the same problem. I installed the following patches in an attempt to solve compiler errors with std::list<> template on Sparc Solaris 5.7:
107311-14 C++ 5.0: Patch for C++ 5.0 compiler requires:
     107357-11 Compiler Common 5.0: Patch C 5.0, C++ 5.0, F77 5.0, F90 2.0
     106300-11 SunOS 5.7: 64-bit Shared library patch for C++
     106327-10 SunOS 5.7: 32-bit Shared library patch for C++ requires:
          106950-15 SunOS 5.7: Linker Patch
I also tried to compile a hello world and got the same errors. I backed off 107311-14 and hello world compiled but I'm back to my original problem. I have to fix this problem by next Tuesday so I could really use some help.
Thanks, Steve

Similar Messages

  • Sun-faces-config.xml question

    Hello all,
    maybe this question is a bit silly, but i�m a newbie to this. I�m developing a complib file with a custom component; and I want to add custom properties to it. As far as I�ve done, i�m able to add custom string properties via the "StringPropertyEditor"
    All this is done in the sun-faces-config.xml file, and when I declare a property which can be set via a combo-box, this is, with a "SelectOneDomainEditor" in the sun-faces-config.xml, I don�t know how to populate this combo with data to be shown so it can be selected in the properties window.
    I�d be truly grateful to anyone who can help me out, maybe a short sample or fraction of a sun-faces-config would be fine.
    Thanks everyone in advance, and sorry for the long read,
    MANUEL ANS�N.

    Hi ,
    The follwing link may probably answer your query.
    http://swforum.sun.com/jive/thread.jspa?threadID=50215&tstart=15
    Regards.,

  • Sun Identity Compliance Manager Questions

    Hi Everyone,
    We are looking for a complete list of supported managed resources for the Sun Identity Compliance Manager (SICM) tool.
    Also we have the following specific questions:
    1.     Does SICM have connectors/adapters to Solaris 8/9/10 and Oracle EBS (as managed resources) to perform access certification of user accounts and associated entitlements/privileges/roles.
    For example: Can SICM be used to analyze/report on the status of current and newly provisioned Solaris unix-level accounts and associated RBAC roles (say) -or- Oracle EBS accounts and associated roles /responsibilities to identify if they have been certified or have any SOD conflicts?
    2.     Can SICM be implemented as a fully functional stand-alone product as opposed to it being integrated with Sun Identity Manager (SIM) ?
    3.     In a scenario where SIM and SICM are integrated, can SIM do a hand-off to SICM for SOD analysis and checking as part of it account provisioning workflows?
    Any insight and/or pointers will be greatly appreciated!
    Thanks in advance and please let me know if there is a more relevant forum to post this question.
    -TS

    I have resolved the problem, the problem is because of the idmmanager attribute. In onsite they are using some other idm 6.0 with some patch, so they are getting the idm manager attribute but in offshore we dont have any patch installed for getting the idm manager attribute. Do you have any idea about how to get the idm manager attribute in the idm 6.0 with some patch? Thanks for your help ya.

  • Sun Java Communications Suite questions

    Hi all! This is my first post to these boards so please excuse any board fobars.
    Anyway, I have been charge with replacing our existing mail system based on POSTFIX, IMAP and SMTP with a better solution and have come to Sun Java Communications Suite as an option.
    I notice the software can be downloaded for free, but there isn't any obvious mention of end-user costs. Are there any?
    Second, what is the best way to back up the system each night and weekend. I have tried doing a search in Yahoo! and Google but haven't really come up with an answer. Can I back up individial mailboxes and objects with them or must I backup only the system as a whole?
    Thanks for any help!
    Mark

    Yes it has shared folders and you can set up email lists. For instance I have our hylafax fax server just convert the incoming fax and put it in a public company folder that everyone has read access to. Also I have a mailing list that when you send to the address it goes to all employees and you can add the ability for an outside email address like [email protected] rights to send mail to it. The graphical interface works well but you'll want to make your own service packages which isn't hard to do. I really like using commadmin to create my users over the delegated admin but that&#8217;s just me.
    Oh yea I also have a public mail folder I use for corp documents. I just email the docs into that folder.
    Calendar server is great. The outlook connector works great.
    Plus if you&#8217;re going to run it on Solaris 10 you get all the great functionality of that operating system for instance I have my whole mail server running on a solaris zone which resides on a zfs filesystem.
    Which makes it extremely easy to back up or clone and run experiments or updates something goes wrong just rollback. ZFS is truly the best file system out. Solaris is so awesome it was able to keep running even when one of my cheap xeon processors was running in a degraded state. Solaris Fault manager is a god send and they don&#8217;t even market it really. fmadm faulty has saved my butt many times.
    Solaris 10 + commsuite = Little downtime and tons of power.
    Edited by: mark42324 on Dec 4, 2008 5:45 PM

  • Sun IdM newbie - netbeans question

    Our Sun IdM configurator consultants have left and I'm trying to open our Development IdM project in Netbeans (just went to admin training and want to poke around). I have all the software ready on the workstation and the Sun IdM Netbeans plugin installed.
    I cannot create a successfull project on my Windows XP workstation and I think I'm missing a few steps.
    Here's what I did so far:
    1. Checked out the code in Netbeans.
    2. Ran the command "ant -verbose dist-war" and got a BUILD SUCCESSFULL message.
    3. I open netbeans and browse to the IdM directory but instead of opening the project, it traverses into the next folder.
    What are my next steps in order to open this in Netbeans as a project? I can copy the IdM/nbproject directory from the workstation our consultants developed the software on into the IdM directory on my workstation and Netbeans will allow me to open the project.
    But to do this the correct way, what do I have to do after the build to get the nbproject and other project related directories/files into my IdM directory so I can open the folder as a Netbeans project?
    Any help would be appreciated.
    Thanks,
    Ed

    OK, OK if the policy is set to generate my troubles go away.... I thought that was gone with metaview?
    Anyway, what if I'd like to choose a special Policy for creation that differs from normal operations?
    CU,
    Patrick.

  • Sun Ultra 5 / Newbie Question

    Hello. I am a student preparing for a career in Deskside Support. I recently purchased a Sun Ultra 5, so I could increase my experience with UNIX / LINUX. When the system powers up it goes through what seems to be a normal boot process and then keeps repeating the below error:
    SUN, hme0 : No response from Ethernet network : Link down -- cable problem?
    I am assuming that it is looking for some sort of a network connection. It is not on nor will it be on a network. I also have a copy of Ubuntu on the way, as I have heard this is a good source of LINUX experience. Does the forum have any thoughts or comments on what the error is saying and how to get rid of it?
    2WheelsOver4

    Here is some additional informaiton that I was able to capture from the boot process.
    (Here is what I get when I boot.)
    ===============================================================
    SUN Ultra 5/10 UPA/PCI (Ultra SPARC-11 333mhz), Keyboard present OpenBoot 3.15, 256 memory installed, Serial #********. Ethernet Address 8:0:26: a4:z2:1F Host ID....
    Boot Device: disk File and Args
    Sun OS Release 5.9 Version Generic ID 112233-48 64bit
    Copyright 1992-2003 Sun Microsystems, inc. All rights reserved. Use is subject to terms.
    Configuring IPv4 Interface hme0.
    Configuring IPv6 Interface hme0.
    Hostname lucky
    The / file system (/dev/rdsk/...........) is being checked.
    [the periods are place holders as I cant read the picture I took when it was going on.]
    SUNF,hme0 no response from the Eithernet network & link down -- Cable Problem?
    SUNF,hme0 no response from the Eithernet network & link down -- Cable Problem?
    SUNF,hme0 no response from the Eithernet network & link down -- Cable Problem?
    ===========================================
    It keeps repeating. I think it has something to do with it looking for booth instructions off the network it was on. I also feel one of the boot proms need reseting. It never gets to root / UNIX prompt. I can STOP -A and get to OpenBoot prompt and SETENV / PRINTENV and run baisc diag but no more.
    When I reboot from OpenBoot with the "boot cdrom" command here is what I get.
    ==========================================
    SUN Ultra 5/10 UPA/PCI (Ultra SPARC-11 333mhz), Keyboard present
    OpenBoot 3.15, 256 memory installed, Serial #********.
    Ethernet Address 8:0:26: a4:z2:1F Host ID....
    Boot device /pci@1f,0/pci@1,i/*****/cdrom@2,0:f File and args
    Evaluating boot cdrom
    Can't open boot device
    Boot device: disk File and args
    SunOS Release 5.9 Version Generic_112233-01 64-bit
    Copyright 1993-2003 Sun Microsystems, Inc. All rights reserved.
    Use is subject to terms.
    ============================================

  • Forte 6.2 and Sun C++ 4.2 question

    Is there a way to link a library built using Forte 6.2 to an application using Sun C++ 4.2. I know that all of you recommend I should recompile my codes to 6.2, but I have no way out.
    My company's old application is built using 4.2 and we need this new library which uses STL. Although we have the codes for this library, we can't build it for 4.2 because 4.2 does have the STL library.
    So I am thinking about building this library in 6.2 and then wrap it using extern "C" in my application then finally build and link it using 4.2.
    Will this work? Any advice is appreciated :)

    Is there a way to link a library built using Forte
    6.2 to an application using Sun C++ 4.2. No, you can't do that.
    You can go the other way, however. You can compile new code with C++ 5.3 (Forte 6 udpate 2) using the -compat=4 option, and link in the existing code that was compiled with 4.2.
    >
    My company's old application is built using 4.2 and
    we need this new library which uses STL. To use the C++ standard library, you must compile in default standard mode (-compat=5). The code generated in standard mode is not compatible with code generated by C++ 4.2.
    The C++ Migration Guide that comes C++ 5.3 explains the issues.
    So I am thinking about building this library in 6.2
    and then wrap it using extern "C" in my application
    then finally build and link it using 4.2.
    Will this work? Any advice is appreciated :)The C++ MIgration Guide explains how you can isolate standard-mode code and compatibility-mode code into separate libraries and link them together. The requirements on the code are severe, however, and the version of the Migration Guide that comes with C++ 5.3 did not adequately describe all the limitations. You can download the current version of the Migration Guide from
    http://developers.sun.com/tools/cc/documentation/ss10_docs/index.html
    The Migration Guide for Sun Studio 10 (C++ 5.7) mentions using libExbridge to allow exceptions to work, but that library is not available for C++ 5.3. If your program uses exceptions, it's possible that the program won't work.
    The best solution would be to get the old source code and recompile it with the newer compiler.
    The second-best solution would be to drop the old code, and write a replacement library.
    Trying to mix the old and new code will take nearly as long, and will trap you in a descending spiral that will eventually require you to replace the old code anyway.

  • Root is running Sun One Directory Proxy Question ?

    While i was installing the directory proxy server, i gave all root to own the files? Is Sun One Directory Proxy suppose to run as root or can i run as non-root user ?

    You can (and probably should) run as a non-root user, assuming you're running on a port above 1024.
    If you've already installed as root, and root owns all the files, the following should theoretically work:
    - Shut down DPS
    - Edit <dps-root>/etc/dpsDefaultConfiguration.ldif, and change the ids-proxy-con-userid attribute to the user ID you would like the server to run as
    - Modify the same entry in the directory server that holds your proxy's configuration information, like:
    ldapmodify -h config_dir_host -p config_dir_port -D "cn=directory manager" -w password
    dn: ids-proxy-con-config-name=<instanceName>,ou=system,ou=dar-config,o=NetscapeRoot
    changetype: modify
    replace: ids-proxy-con-userid
    ids-proxy-con-userid: <same value as you put in the LDIF file above>
    - Change the ownership of all the files in the DPS install directory
    - Change over to the user that you selected and try to start the DPS process

  • Sun CC OpenMP implementation questions

    Hi all forum posters!
    Im trying to lurk out out Sun CC implements it's OpenMP scheduling policies but haven't found any information about this. Im interested in aspects such as how the work-sharing/task-stealing is performed , embedded task-depth cutoffs , untied vs tied (I have a feeling SunCC do not differ these two), and how task-scheduling is performed?
    Is there any documentation about these things or any person I can contact to increase my knowledge about this compiler?
    Thank you and best regards!

    The only publicly-available information about our implementation of OpenMP is in the OpenMP API User's Guide.
    Some of the details you ask about are currently proprietary. Some details are subject to change as we improve the OpenMP implementation.

  • Cannot compile a prog in C++ using Sun WS 5.0 on Solaris 8

    I am getting errors while compiling a helloworld program in C++ using Sun Workshop 5.0 on Solaris 8. The error messages are given below.
    The command I use for compiling my program is :
    CC Hello.cpp
    Is there anything wrong with the installation of the compiler?
    (All my C is code is compiling perfectly)
    Do I need to make some settings?
    Is the Sun compiler 5.0 incompatible with Solaris 8?
    In addition to this, if I want to use the list and vector classes, what headers can I use? What should the compilation command be?
    Thanks,
    Puneet Singhal
    I am getting these error messages:
    "/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51: Error: The name mbstate_t is ambiguous, std::mb
    state_t and std::mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 78: Error: The name mbstate_t is ambiguous, std::mb
    state_t and std::mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 56: Error: The name mbstate_t is ambiguous, std:
    :mbstate_t and std::mbstate_t.
    4 Error(s) detected.
    The program listing of Hello.cpp:
    ----------------------------------------------------#include<iostream.h>
    int main()
    cout << "Hello World";
    return 0;

    I've been able to compile this program fine on Solaris 8 with Forte Developer 6 Update 2. The exact version+patches is: CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-04 2001/12/13
    I've also compiled with Workshop 5.0, and the code works fine. This is on Solaris 8 with the following compiler version+patches:
    CC: WorkShop Compilers 5.0 01/12/04 C++ 5.0 Patch 107311-16
    Let me know if you have any questions.
    -Moazam

  • Include file conflict? mbstate_t

    I've just installed Workshop C++ 5.0 on Solaris 8 and had also perviously installed Sun's CD of GNU tools. When compliling a simple program I get the following error:
    CC -o primes primes.cc
    "/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51: Error: The name mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 78: Error: The name mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 56: Error: The name mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
    4 Error(s) detected.
    Note that my program only includes <iostream>, and then uses std.
    Any ideas? Thanks in advance.
    Jonathan

    The mbstate_t structure is defined in iotraits. There is a conditional compile around this definition, perhaps the conditional value has been changed somwhere in the include hierarchy magic. I suggest you put a #error line in the appropriate places to see which version of the definition is being used. Also you check which version of the compiler you have, there are a number of patches that were specific to the standard library. I downloaded the most recent patch and it fixed a strange problem I was having with iostreams.
    Bruce Edgerton

  • Migrating data from Sun ONE directory server into openLDAP

    Hi,
    I was to migrate the data from Sun ONE directory server into openldap. Has anybody done this or know about this. Can you please share the steps that needs to be done.
    NOTE: I have exported the data into LDIF file but when I run with ldapadd into the open ldap
    ldap_add: Invalid syntax (21)
    additional info: objectClass: value #1 invalid per syntax
    Are there specific schemas that i need. Where can I find them?
    Thanks

    Why would you want to migrate data into an OpenLDAP server ?Good Question, let me explain you my problem with Sun DS.
    No Question DS is the better product (even Red Hat realized this).
    Problem: DS is not a base Solaris 10 OS component, for patch support
    you need some additional plan, now sun marketing nightmare comes ;o)
    Every year service plans are changed (want a SJES or a DS or a DSEE ?)
    so use solaris with OpenLDAP, or linus with NSDS.
    Sun please give us a Solaris Core Component called LDAP Server (no need for trillions of entries).
    joe

  • Kssl configuration with Sun Software PKCS#11 softtoken

    I need to understand what changed in Solaris 10 10/08 s10s_u6wos_07b SPARC with regard to the crypto framework.
    I want to configure kernel SSL proxy (kssl) to use the certificate stored in the PKCS#11 keystore. First, I generated a certificate labelled "mycert" with the pktool command. Next I ran the ksslcfg command as follows:
    ksslcfg create -f pkcs11 -C "mycert" -T "Sun Software PKCS#11 softtoken" -x 51000 -p /tmp/pwd 443
    The service log indicated :
    "no matching PKCS#11 token found"
    I had to dig through the kssladm source code in OpenSolaris to find this piece:
    http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/kssladm_create.c?&r=898.
    The code iterates through the list of tokens, then compares labels with the one provided by the user. Since I specified what the Sun documentation says "Sun Software PKCS#11 softtoken" I would expect it to find it, but it does not. Pktool indicates that the label is present:
    % pktool tokens
    Token Label Manuf ID Serial No PIN State
    Sun Software PKCS#11 softtoken Sun Microsystem user set
    I then ran the kssladm manually and specified the -v (verbose) option, so it would print the labels it actually found. It turned out that the only token it finds has a label "Sun Metaslot ".
    My question is: is this now the recommended label to be used instead of the "Sun Software PKCS#11 softtoken"? If it is then why does pktool still shows it? Is this a bug in this particular Solaris release? Would appreciate any insight.
    Thanks
    Leonti

    You need to use the trustanchors nssModule, read the JavaTM PKCS#11 Reference Guide at --
    http://java.sun.com/javase/6/docs/technotes/guides/security/p11guide.html#Config
    For example, you can write your config file like this --
    name=NSS
    nssSecmodDirectory=path_of_your_dbs
    nssLibraryDirectory=path_of_dll_or_so
    nssModule=trustanchors

  • Sun Cluster Core Conflict - on SUN Java install

    Hi
    We had a prototype cluster that we were playing with over two nodes.
    We decided to uninstall the cluster by putting node into single user mode and running scinstall -r.
    Afterwards we found that the Java Availability Suite was a little messed up - maybe because the kernel/registry had not been updated - it though the cluster and agent software was uninstalled and would not let us re-install. All the executabvles from /etc/cluster/bin had been removed from the nodes.
    So, On both nodes we ran the uninstall program from /var/sadm/prod/... and then selected cluster and agents to uninstall.
    On the first node, this completely removed the sun cluster compoenets and then allowed us to re-install the cluster software successfully.
    On the second node, for some reason, it has left behind the component "Sun Cluster Core", and will not allow us to remove it with the uninstall.
    When we try to re-install we get the following:
    "Conflict - incomplete version of Sun Cluster Core has been detected"
    In then points us to the sun cluster upgrade guide on sun.com.
    My question is - how do we 'clean up' this node and remove the sun cluster core so we can re-install the sun cluster software from scratch?
    I don't quite understand how this has been left behind....
    thanks in advance
    S1black.

    You can use prodreg directly to clean up when your de-install has gone bad.
    Use:
    # prodreg browse
    to list the products. You may need to recurse down into the individual items. The use:
    # prodreg unregister ...
    to unregister and pkgrm to remove the packages manually.
    That has worked for me in the past. Not sure if it is the 'official' way though!
    Regards,
    Tim
    ---

  • Log4j appender question

    I need some log4j help. Hope anyone can help me.
    Question 1:
    I need to log information to 4 different files. As far as I can tell from the log4j docs, I will then need to create 4 different appenders in the log4j.properties file. How can I do that?
    Looking at examples, it looks like I will need to add 4 new sections similar to this one. Is that correct?
    # Logfile 1
    log4j.appender.log1=org.apache.log4j.RollingFileAppender
    log4j.appender.log1.File=C:/Sun/logs/logme1.log
    Question 2:
    After that is done, how can I actually write to the files? When logging I was thinking just using: logger.info("log something").
    How can I specify which file that will log to? Is that even the correct way to log?
    Hope someone can help!

    After that is done, how can I actually write to the files? When logging I
    was thinking just using: logger.info("log something").
    How can I specify which file that will log to? Is that even the correct
    way to log?apperantly, it doesn't seem like you have understand how log4j works. that's probably why warnerja tell you to perform some search.
    understand the technology first..then ask specific question here.
    it will be useless just handling out answers to everyone. i think they're here just not to provides answers, but to educate other along the way...but they need to see an effort was made first.
    you're right..there are time when one doesn't have enough time to understand the whole technology..or the technology is too difficult to comprehend..or the documentation is poor., but i think there are plenty of good documentation on log4j. Futhermore..what you are asking is not usually shown in the documentation, but a google search would probably provides you with the answer you seek..you just need to find a good keyword.
    Futhermore, I suggest you read some tutorial on log4j if you plan to use the technology..it will not takes all day..maybe an hour or so..just to get how the technology works
    anyway,
    your appender tell the logger where the log the message to (depends on the level you specified) .. so if you have 3 appender that specified
    the level to be INFO, and you have logger.info("This is an INFO message"), then the message will be log to all three files.
    log4j.threshold=ALL
    log4j.rootLogger=ALL, stdout, DebugAppender, InfoAppender,
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%c %d{ISO8601} -- %p -- %m%n
    log4j.logger.DebugAppender.access=DEBUG
    log4j.appender.DebugAppender=org.apache.log4j.RollingFileAppender
    log4j.appender.DebugAppender.File=.${file.separator}log${file.separator}ex_debug.log
    log4j.appender.DebugAppender.MaxFileSize=10KB
    log4j.appender.DebugAppender.MaxBackupIndex=1
    log4j.appender.DebugAppender.layout=org.apache.log4j.PatternLayout
    log4j.appender.DebugAppender.layout.ConversionPattern=%c %d{ISO8601} -- %p --
    %m%n
    log4j.logger.InfoAppender.access=INFO
    log4j.appender.InfoAppender=org.apache.log4j.RollingFileAppender
    log4j.appender.InfoAppender.File=.${file.separator}log${file.separator}ex_info.log
    log4j.appender.InfoAppender.MaxFileSize=10MB
    log4j.appender.InfoAppender.MaxBackupIndex=2
    log4j.appender.InfoAppender.layout=org.apache.log4j.PatternLayout
    log4j.appender.InfoAppender.layout.ConversionPattern=%c %d{ISO8601} -- %p -- %m%nthe
    log4j.rootLogger=
    tell what appender to use...so include all your appender in this property.
    you appender specified the logging level INFO, WARN, DEBUG,
    ERROR, or FATAL. I'm not sure how to specified the min and max level
    for an appender using a property file..for xml configuartion file..look at
    the example provide in previous reply.
    now if you do :
    logger.info("This is an info message") and want it to log to file1 and file2
    and log.info("This is another info message") and you want this to log to file3
    you can't do that...a way around this is to create your own level..and the
    appender will specifies that level.
    if you plan to use an XML configuration file, then make sure you include the <root> node
    <root>
       <priority value="debug"/>
       <appender-ref ref="DEBUG"/> 
       <appender-ref ref="INFO"/>
       <appender-ref ref="MY_APPENDER_NAME"/>
    </root>
    </log4j:Configuration>

Maybe you are looking for