Help regarding file name

Hi All,
I want to write my logging information into a file with filename <month><year>.log
How can I do this using the log4j xml configuration file?
Thanks, Sachin

I don't have the documentation here but you would use a DailyRollingFileAppender. If you are working with log4j then you should have the docs accessible. Check it out. If I recall correctly there is an example of that in the tutorial that comes with the product.

Similar Messages

  • F4 help for file name

    frnds,
    Im using the FM "KD_GET_FILENAME_ON_F4" to get F4 help for file name in presentation server... but it does not seem to work...Y?????????
    and is there any FM to get the file name from the application server..
    points assured to all the answers...
    regrds,
    Madan...

    Try to use WS_FILENAME_GET
      call function 'WS_FILENAME_GET'
        exporting  def_filename     =  space
                  def_path         = 
                    mask             = ',.  ,..'
                    mode             = 'O'
                    title            =  text-038
       importing  filename         =  os_name
                                  RC               =  DUMMY
       exceptions inv_winsys       =  04
                  no_batch         =  08
                                    selection_cancel =  12
                                    selection_error  =  16.
    or
    at selection-screen on value-request for p_file1.
      data wa_file like file_table.
      refresh filetable.
      call method cl_gui_frontend_services=>file_open_dialog
       EXPORTING
       WINDOW_TITLE            =
       DEFAULT_EXTENSION       =
       DEFAULT_FILENAME        =
       FILE_FILTER             =
       INITIAL_DIRECTORY       =
       MULTISELECTION          =
       WITH_ENCODING           =
        changing
          file_table              = filetable
          rc                      = rc
       USER_ACTION             =
       FILE_ENCODING           =
      exceptions
        file_open_dialog_failed = 1
        cntl_error              = 2
        error_no_gui            = 3
        not_supported_by_gui    = 4
        others                  = 5.
      if sy-subrc = 0.
        if rc = 1.
          read table filetable into wa_file index 1.
          move wa_file-filename to p_file1.
        endif.
      endif.
    Max
    Message was edited by: max bianchi

  • Neophyte needs help avoiding file name conflicts!

    My companion and I share a single computer with a single copy of PSE7.  We use nearly identical cameras (Fuji FinePix E series 510 and 550).  Both cameras use the same system for assigning file names.  As a consequence when we up load from our respective cards and the names are the same for different photos only the first in goes into the organizer.  We have just discovered the problem.  I'm embarrassed to admit the discovery comes almost four and one half years late.  I had tried to create stand-by copies to CD but the same problem may exist there.
    Can I massage the file names to distinguish "his from hers".  If so at what point.  What can I do about making the same discrimination with the photos already on the hard drive?  Perhaps Bob... as opposed to Katie...?
    Any help at all will be greatly appreciated.  I'm now sitting on two 1G cards for my camera and one for hers trying to determine how to handle the problem.
    Thanks,
    ibbobby

    Hi,
    Use APD to download photos from your cameras, and while downloading specify the Rename Files option (Probably Bob_<ShotDate>).
    This will create unique file names and all the files will then get imported into Organizer.
    Alternatively, if you have only jpeg files, you can stamp the file with Author/Copyright metadata in APD. When this value is provided, all the files with get imported in Organizer.
    Thanks/Tarun

  • Regarding  File name schema in  Receiver  com. Channel

    Hello,
    I have gone thru  the blog
    The specified item was not found.
    "The same filename from a sender to a receiver file adapter - SP14 for Dynamic configuration"  by Michal Krawczyk....And here in this Scenario in ID (in Reeiver communiation channel)what should we give as file name.(or) can we leave it blank.
    If my client wants the name ,then instead of assigning it to the root can I consider a element and assign the udf...In this case how it will effect the Receiver file name schema in Rec Communication channel in ID

    Hi,
    Pass it as %FileName% which will come from dynamic configuration.
    SAP note may give some hints- 746393 and also this thread has got the answer
    Module Processor : Module exception java.lang.ClassCastException
    Thanks
    Swarup
    Edited by: Swarup Sawant on Aug 22, 2008 11:19 AM

  • Regarding file name in the target system

    Hi..
    I have got a file name releated problem in XI.
    I have configured a flow in XI system using proxy and after mapping process creates a output file in target machine as a "Test<Date-Time Satmp>.dat".
    Test is the file name and adding date-time stamp to that.
    I am using file adapter.
    Now my requiremnt is that instead of "<b>Test<Date-Time Satmp>.dat</b>", I need to create a file as
    <b>"<Date-Time Satmp>Test.dat</b>" .
    Please let me know if anyone has come across similar situation.It is urgent.
    I know there is an option to create dynamic file names in file adapter but i think it isn't enought to solve my problem.

    Hi jahangir laskar,
    For the Receiver communication channel, (file adapter)
    Enter in the fields
    1. Under <b>File Access Parameters</b> section,
    <i>File Name Scheme : test.dat</i>
    2. Under <b>Processing Parameters</b>
    <i>File Construction Mode : Add Time Stamp</i>
    This should work, i just tested it out.
    Srinu.

  • Need help getting files names from directory

    I have never done anything in php before and I'm struggling.
    In an attempt to search through potential document names in a directory, I've added the following code to a new php document:
    <?php
    if ($handle = opendir('.')) {
        while (false !== ($file = readdir($handle))) {
            if ($file != "." && $file != "..") {
                echo "$file\n";
        closedir($handle);
    ?>
    with no luck. When executed all I get is a blank screen. Any ideas why?
    End goal is to list the file names in the directory so that the user can choose to open desired document. Thanks!

    Click here and pick the option which best fits your situation.
    (93771)

  • Help Regarding File I/O in a procedure using Cursor

    Hi all,
    I am using a procedure, which uses a cursor, in this cursor we do some calculations and then write these calculations in a .csv file using utl_file package.
    We have 2 approaches,
    1. In every loop of cursor calculate and write then and there itself in the .csv file this means that file is open for total execution time of cursor.
    2. In every loop of cursor calculate the values and at end of loop get the accumulated value in temporary variables and write into the file once, rather than in loop.
    Which approach is better? Any visible proofs of which is better approach?
    i. Our database server is a stand alone server.
    ii. The file to be created is on same server.
    iii. Our server is single CPU, single disk server.
    iv. at a time only one user will access the file to write and that too everytime file is created with unique name having timestamp in its name.
    Considering all these points, can you guys pls help me in deciding which is better approach, how and why?
    Thanks in advance,
    Avinash Bhamare.

    Hi,
    Thanks for the link,
    But it is not what i am looking for...
    My doubt is simple and regarding whether we should be doin the I/O operations on any file in a loop or outisde loop.
    Thanks & Regards,
    Avinash.

  • Help regarding table names

    kindly help me out with table names used in payroll and also related to processing class and cumulation class

    chk here are some tables related to payroll.
    T510          Pay Scale Groups      
    T510A        Pay Scale Types
    T510F        Assign Pay Scale   > Time Unit, Currency  
    T510G        Pay Scale Areas                           
    T510H        Payroll Constants with Regard to Time Unit
    T510I        Standard Working Hours
    T510J        Constant Valuations                                    
    T510L        Levels                                                 
    T510M        Valuation of pay scale groups acc. to hiring date      
    T510N        Pay Scales for Annual Salaries (NA)
    T510S        Time Wage Type Selection Rule
    T510U        Pay Scale Groups
    T510Y        Special Rules for Wage Type Generation
    T511         Wage Types
    T512R        Cumulation Wage Types in Forms               
    T512S        Texts for Cumulation Wage Types in Forms     
    T512T        Wage Type Texts
    T512W        Wage Type Valuation                         
    T512Z        Permissibility of Wage Types per Infotype   
    T513         Jobs
    T514S        Table Name Texts  
    T514T        Field Name Texts
    T51D2        Wage Type Classes        
    T51D3        Reduction Rules          
    T51D4        Cumulation Rules
    T527X        Organizational Units               
    T528B        Positions - Work Centers           
    T528C        Wage Type Catalog                  
    T52C0        Payroll Schemas                             
    T52C1        Payroll Schemas                             
    T52C2        Texts for Personnel Calculation Schemas     
    T52C3        Texts for Personnel Calculation Schemas     
    T52C5        Personnel Calculation Rules                 
    T52CC        Schema Directory                            
    T52CD        Schema Directory                            
    T52CE        Directory of Personnel Calculation Rules    
    T52CT        Text Elements
    T52CX        Cross References via Generated Schemas      
    T52D1        Valid Processing Classes                    
    T52D2        Valid Values for Processing Classes         
    T52D3        Valid Evaluation Classes                    
    T52D4        Permitted Values for Evaluation Classes     
    T52D5        Wage Type Groups                            
    T52D6        Wage Type Group Texts                       
    T52D7        Assign Wage Types to Wage Type Groups       
    T52D8        Valid Processing Classes - Texts            
    T52D9        Valid Values for Processing Classes – Texts

  • Help regarding file access

    hi. i have written code in j2me for playing audio and video files using createPlayer method.But i am playing these files using uri.I have allowed for file browsing. The uri i have given in the bracket is :
    Manager.createPlayer("file://localhost/root1/abc.mpg");
    which is working fine in J2ME wtk2.2
    But it is not working in sony ericsson emulator 2.2
    I think sony emulator does not support this protocol. but has support for playing MP3. So which uri i shud give to it.
    PLS help urgently .thanx in advance.

    why don't u search on a sony ericsson forum??

  • Help regarding files after re-installing M. Lion

    Hey everyone,
    I stupidly deleted the VAR folder today when I was using DaisyDisk and didn't look into it before hand. I then had to reinstall Mountain Lion which worked succesfully adn didn't delete my files however they didn't come back in my normal user window but are still on my HD. I opened iTunes and nothing was in there, my folders on my desktop are gone etc etc. If I spotlight any of the files though they show up and also if I go into the Users folder it shows my old user but doesn't show up in the login pane for me to log into.
    Is there anyway I can get my old user back with my files? As I said everything is still on my HD but for some reason Mountain line basically made a new user for me adn I can't access my old one.
    I hope I have provided enough info for somebody to be able to help. Thank you in advance any help is appreciated.

    If you have a hard drive and it's not Filevaulted you can recover the non-overwritten files with a external boot drive and a copy of $100 Data Rescue installed on it.
    .Create a data recovery/undelete external boot drive
    The software reads the 1's and 0's of the bits themselves, not going by what anything else says.
    You have to quit using the internal drive/MacintoshHD partition particulary as the more your using it, the more it's writing over your files and less is recoverable.
    Also it might be possible to see and grab the files without Data Rescue from the external drive.
    Once you have your files, you just erase and install fresh and return those files into the new account and then #6 repair users permissions.
    ..Step by Step to fix your Mac

  • Help regarding file attachment

    Hello All,
    I am developing a form where the user will add details about a person.At the end there would be a button called "Add Photo" when the user clicks the button the add files dialogue will open. The user can browse through the photo and can add the Photo.The max size limited should be 700 KB.After the user has added the photo the photo would be shown as a thumb nail view. Also the user can change the photo later on .I am also thinking about : If the user clicks on the photo it would be displayed in its original size and one close button will appear on the bigger photo on the top right hand side corner.If the user clicks it then the photo will become thumb nail view once again. Is it possible to design in LiveCycle Designer 8.2 or am being too optimistic ?
    Thanks.
    Bibhu.

    Hi Bibhu,
    Here is an example:
    https://acrobat.com/#d=jTxbDqy4gH9r2oALyXQQhQ
    Check out the script in the layout_ready event of the larger image.
    Good luck,
    Niall

  • File name in sender file adapter

    Hi,
    Our ftp server is sending the file names as:
    AP_INV_<i>nn</i>.XI.<i>sss</i>.<i>xxx</i>.D<i>yyyymmdd</i>.T<i>hhmmss</i>
    where nn  sss  xxx yyyymmdd hhmmss are all variable. The only fix part is AP_INV_ & XI. I tried AP_INV_* but it does not work. I tried AP_INV_.XI... but it also does not work.
    Any idea here please !!!!

    Hi Dehra,
       Check these thread. It may help you:
    File name modification in a File adapter
    Regards,
    Subhasha Ranjan

  • Help in regards to file names when importing to iTunes.

    I recently bought an iPod and I'm dying to use it but at the moment, I can't due to an annoyance I have. I have all my mp3's neatly organized like this: Artist - Song Name.mp3
    The thing is, that's only the file name. I never bothered to modify their ID tags. When I play the songs in iTunes, it sometimes looks like a mess but I didn't mind since I just simply looked for the songs I wanted via the Finder. As you know, to hear tracks on the iPod, you gotta copy your playlist from iTunes so that means that all those tracks with their gibberish names get passed to the iPod. As you can imagine, this is less than convenient as I won't obviously be able to recognize the darn songs. I am further stressed due to the huge amount of songs I have and since it wasn't until recently that I switched to Mac (best decision ever...), I have a huge library of songs that were never identified on my PC. All I did was basically typed in the artist name followed by the song title.
    I browsed through some sites in hopes of finding something that would help me but I have to admit, I barely understand just what I am exactly looking for.
    I would really appreciate your help in any way possible, I'd really like to enjoy my iPod as soon as possible.

    check if this app an help you: http://www.tuneupmedia.com/index.php.
    JGG

  • Regarding the Logical Path and file name

    Hi all ,
    I am using LSMW for creating  the BOM of a material .
    I am getting problem at step 7 , saying the logical path is pointing to physical directory .
    Then i did some R & D . I created the logical path and logical file name using transaction FILE . Then i got the physical path using FM file_get_name.
    But when i give those logical path and logical file names , still i am getting prob.... at step 7 of lsmw.
    Pls let me know . I did my best unti l now ....
    Regards

    Hi Raj,
    Can you send the Error which you got at Step 7??
    It would be of great help if you can send the File Path and the file names you have used.
    Regards,
    -Syed.

  • How to generate file name dynamically in receiver FIle adapter? Please help

    Dear Experts,
       I have a scenario where I need to generate output file with the name dynamically pulled from the XI payload.
       In receiver File communication channel I don't see any option where we can specify the XML path for the file name.
       For example:
       If my inbound XML structure (inbound interface) is like below:
       <filename>file123.txt</filename>
       <RootNode>
             <Element1>Product123</Element1>
       <RootNode>
      From this I need to pick the filename value and generate the output file with the same value.
      How can I achieve this? Please help!
    Thanks & Regards
    Gopal
    Edited by: gopalkrishna baliga on May 3, 2011 1:10 PM

    Gopal,
    You can use DynamicConfiguration class for this.
    You need to write UDF for this and with input of filename you want to set and map this UDF to the top level node.
    Refer the below famous blog from Micheal:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    You can also use Variable substitution to get value from payload, search SDN on this.
    --Divyesh Vasani

Maybe you are looking for

  • How to install Windows 7 on Lenovo S300

    Hi, I bought Lenovo s300, and it has come with Windows8. However I would like to install Windows 7. I make bootable on USB, but I cant manage to boot up from it. What I should select in BIOS. What is the best way to arrange partitions. I have SSD 24g

  • Buffer overrun in IE and Firefox

    Can't see any mov in browser from trailers.apple.com (or other web sites). Received error buffer overrun. I've reinstalled QT 7.2, 7.1 the same. Do you have any ideas?

  • After renaming clips, where can I find the original name?

    Hi Sorry, I asked this before but got an answer more about custom naming. So... After importing my dslr clips with their uninformative date and time names, I often rename them so I can tell what's on them. But sometimes I want to know the original na

  • Equipment selection in QA32

    How can we have equipment selection in QA32 for calibration lots, Can we bring equipment field in Dynamic Selection functionality in QA32. QE51N t code have the functionality of equipment wise selection for calibration lots. But Usage Decision and Ce

  • System: unable to find the specified object.

    I am trying to install tomtom 5 for mobile on my 9300i. Installation is fine but when I try to launch the application it gives the following error. system: unable to find the specified object. I am not able to find any work around this. Any idea plea