LrLogger - any simple way to specify directory for logfile output?

I realize one can rewrite the log function to do whatever, but is there a way to simply specify a different directory for log output than the Lr default (documents), when using default implementation of LrLogger. - maybe config.lua?

John R. Ellis wrote:
The "Lightroom 4 SDK Programmers Guide", page 32, describes how to make an entry into config.lua for finding deprecated API calls.  (That's the only reference to config.lua in the Guide.)
I'll be danged - that's new in Lr4 (or at least the documentation of it is new), and a very good idea, and one I requested but assumed had been ignored. - I'm stoked. - thanks for bringing it to my attention.
And, just for the sake of completeness, this is from the api doc:
Configure loggers using the config.lua file as follows:
Create an entry for each logger of interest by specifying loggers.loggerName = {...}
Arguments in the table include logLevel and a string "fatal", "error", "warn", "info", "debug", or "trace".
For each valid log level, you can add an entry to modify the behavior of log messages for that level. For example, to log to a file, add the entry trace = 'logfile',
To specify an action for all log levels, add the entry action = 'logfile',
PS - I just solved the problem in my own plugins by using a custom log function (like in the debugging toolkit's Debug.lua).
UPDATE: sdkDeprecation.action = "{whatev}" -- needs the quotes.

Similar Messages

  • Is  any SIMPLE way to legally publish an original music piece to get it into the iTunes store as public domain use just for start up purposes? Any better ideas ? I write contemporary (mostly) dance pieces...any thoughts?

    Is  any SIMPLE way to legally publish an original music piece to get it into the iTunes store as public domain use just for start up purposes? Any better ideas ? I write contemporary (mostly) dance pieces...any thoughts?

    https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wa/apply

  • Is there any simple way to close a group of PO's?

    Hello All,
    I was looking an answer for my question on forum but didn't found anything which could help me to solve my issue.
    I would like to close a group of PO's in some period of dates. Is there any simple way to do this? I mean transaction for example, which will let me to choose company number, period of dates  or range of PO numbers and close them by one tick (one action).
    Thank you in advance for any support from your site.
    Regards,
    Kamil

    Kamil,
    Though I have not used this functionality, can you check whether you can use this functionality for mass change?
    Upload and Download of Purchasing Documents
    http://help.sap.com/saphelp_srm70/helpdata/en/09/1f42188473402a890183fd1b7c6082/frameset.htm
    Using this function, you can download purchasing documents as a file to your PC, process them locally, and then upload the changed documents to the SAP Supplier Relationship Management (SAP SRM) system. You can download the following purchasing documents :
    Features:
    The upload/download supports the following functions and possible uses:
    - Cross-Document File Structure
    You can display and process the data in a standard tabular file structure for the documents named above. The file structure assigns a unique technical ID to each data field in a metadata area.
    - Process Document Data Offline and Retain
    You can change or delete existing data, add new data, and transfer all document data, for example, customer fields.
    - Process Large Documents
    This function simplifies the creation of documents with numerous items, and simplifies mass changes to large documents; for example, you can download a document with only one item, and add multiple items to it offline.
    Background processing occurs in the case of very large documents.
    Regards,
    Sandeep

  • IS THERE ANY SIMPLE WAY TO RETURN SPEED PERFORMANCE TO FACTORY SPEED AFTER ABOUT 3 YEARS OF RELATIVELY STANDARD USE?

    Everyone is often so quick to bash all these 'cleaning' utilities but rarely give any solutions.
    There's a lot of critiques and endless lists of what NOT to do to avoid performance problems.
    My Powerbook is 3 years old. It runs like molasses... SLOW.
    I'm not a computer geek, but I'm smart and understand quite a bit more than a newbie.
    Do I need a degree in computer engineering to fix/speed up my mac?
    Yes, I know, the cleaning utilities suck. But is it really true of all of them?
    I'm not totally convinced because there seems to be such a huge market for them.
    Sure, there's a huge market for bottled water too, so maybe they are just useless/marketing crap, but I really want to return to my original speed performance quickly and can't seem to find out if it's possible with a utility.
    I'm not willing to sit down for 3 hours and study line by line b.s. about how to fix it.
    I have no problem if it's not fixable. I've always assumed operating systems outgrow their hardware's capacity to keep up, and sell my old one for a new one, no prob.
    I don't care, really, but again, I'm curious if there is any quick, easy, user-friendly utility or method that I can use to return the speed performance I had as recently as a year ago? (I'd be satisfied with that).
    Anyone willing to bite on that? Anyone willing to not critique, complain, tell me what NOT to do and actually know a solution?
    IS THERE ANY SIMPLE WAY TO RETURN SPEED PERFORMANCE BACK TO (OR CLOSE TO) ORIGINAL FACTORY SPEED AFTER ABOUT 3 YEARS OF RELATIVELY STANDARD USE?
    The only thing I may have done outside of the norm was some video editing, but very little.

    Look for solutions here:
    https://discussions.apple.com/docs/DOC-3521
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • Any simple way to do popup image view overlay in DW? Can't get pickachoose+fancybox+fluid working

    Hey all,
    Just wondering if anyone knows any simple ways to create a popup over lay window like what fancybox/lightbox/shadow box does and get it to work with a Dreamwever fluid grid site?
    I've got pikachoose+fancy box to run together perfectly in a plain html page, but when I bring that code into a Dreamweaver fluid grid site, the code doesn't work (well images don't cycle, and popover doesnt load when you click on the image link).
    I'm guessing it's a jquery conflict of some kind.
    Any help would be great, I can post the full code if someone is able to take a look. When I inspect the code in Google Chrome web inspector I get in the console:
    Uncaught TypeError: Cannot read property 'msie' of undefined jquery.fancybox-1.3.4.pack.js:18
    Uncaught TypeError: Object [object Object] has no method 'fancybox'
    Code below
    <!doctype html>
    <html class="">
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>-</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="css/ce4.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="jquery.fancybox-1.3.4.css" media="screen" />
    <link type="text/css" href="styles/bottom.css" rel="stylesheet" />
    <script src="respond.min.js"></script>
    <script type="text/javascript" src=" https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    <script type="text/javascript" src="lib/jquery.pikachoose.js"></script>
    <script type="text/javascript" src="jquery.fancybox-1.3.4.pack.js"></script>
    <script language="javascript">
    $(document).ready(function (){
    var a = function(self){
    self.anchor.fancybox();
    $("#pikame").PikaChoose({hoverPause:true,  showCaption:false, text: {previous: "", next: "" }, buildFinished:a});
    </script>
    </head>
    <body>
    <div class="pikachoose">
    <ul id="pikame" >
    <!-- <li><a href="1.jpg"><img src="1.jpg"></a>-->   
    <li>
    <a href="images/1large.jpg">
    <img src="images/1small.jpg"/>
    </a>
    <span></span></li>
    etc... etc...
    Any help would be great

    I don't know what a pikachoose is, but Fancybox2 works in Fluid Layouts.  Copy & paste the following code into a new, blank document.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5, with Fancybox2 Viewer</title>
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <style>
    /**this styles image container**/
    #thumbs p {
    float:left;
    width: 180px;
    height: 12.5em;
    margin: 10px 0 0 20px;
    padding: 10px;
    border: 1px solid silver;
    /**rounded borders**/
    -moz-border-radius: 20px;
    -webkit-border-radius:20px;
    border-radius: 20px;
    /**this styles caption text**/
    font: italic 14px/1.5 Geneva, Arial, Helvetica, sans-serif;
    color: #666;
    text-align:center;
    /**recommend using same size images**/
    #thumbs img {
    width:  160px; /**adjust width to thumbnail**/
    height: 120px; /**adjust height to thumbnail**/
    margin-bottom: 1.5em;
    opacity: 0.75;
    #thumbs img:hover {opacity: 1.0}
    /**float clearing**/
    #thumbs:after {
    content:".";
    clear:left;
    font-size:0px;
    line-height:0;
    display:block;
    visibility:hidden;
    </style>
    </head>
    <body>
    <h1><a href="http://fancyapps.com/fancybox/">Fancybox2</a> Viewer with images</h1>
    <!--insert thumbnails with links to full size images below-->
    <div id="thumbs">
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 1" /></a> <br />
    Caption 1
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 2" /></a> <br />
    Caption 2
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 3" /></a> <br />
    Caption 3
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 4" /></a> <br />
    Caption 4
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120" alt="Thumbnail 5" /></a> <br />
    Caption 5
    </p>
    <!--end thumbs--></div>
    <!--FancyBox function code-->
    <script>
    $(document).ready(function() {
         $('.fancybox).fancybox();
    </script>
    </body>
    </html>
    Nancy O.

  • Is there any simple way to create ods files (OpenOffice Calc)?

    Is there any simple way to create ods files (OpenOffice Calc) using ResultSet (from java.sql)?

    Mabe, you can create CVS files (plain text) Ej...
    ====test.cvs=====
    1, "aaa"
    2, "bbb"
    3, "ccc"
    ===============
    Using a "BufferedWriter"

  • Specifying directory for imported music

    I have a question concerning importing music from CDs into iTunes. The problem is that my hard drive is filling up fast and I need to specify another directory (on a different hard drive) to save the music I import from my CDs.
    So, in short, is there a way to specify in iTunes where music is stored when I import it from a CD, and can this directory be different from my normal iTunes folder?

    You can go into Preferences, and change the location of the folder. That does not move any existing songs, but will cause all newly imported, converted, or purchased files to go to the new location.

  • Is there any standard way or testing utility for EJB fail safe in cluster env

              Hi
              I got to test the beans for complete fail safe like home
              fail overing and method calls (idempodentcy) fail over, is there
              any testing utility or standard approach for this or I got to do
              it manually??
              any help on this highly appriciated
              Thanks and regards
              Aruna
              

    Look for solutions here:
    https://discussions.apple.com/docs/DOC-3521
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • TS3212 Apple appear to have an incorrect version of my email(one letter too many) I have tried many times but there does not seem to be any simple way of correcting this. I have now given them a new hotmail address to enable me to use the apps. Ive update

    Problem as outlined above now changed to using a new hotmail address but this address appears to preclude access to my existing itunes purchased library content?
    Are there any simple solutions to these problems?

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • Trouble specifying TTL for digital outputs from PCI-6221

    Hi!
    I'm trying to generate TTL output signals using a PCI-6221 daq board - within Labview, I'm using DaqMx to create two digital waveforms and then write these. When I plug in an oscilloscope, the shapes/frequencies of the signals are correct, but the lower value is 0V, and the higher value is 1V, rather than the TTL values. Is there a way to specify these voltage levels to TTL within the software? I see from NI help that "do.logicfamily" exists to specify TLL, but when I add a property node and connect it to the channels, I do not see Logic Family as an option under "digital output." Let me know if you have any ideas!
    Thank you,
    Emily

    Set your oscilloscope to use 1MOhm impedence.  Your problem is that the maximum current for those DIO is 24mA.  1V/50 Ohms = 20mA.  So you are current limiting the digital outputs.  If you need more current, then you need to add in some digital buffer chips that can output more current.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Converting HDV to H.264 for storage. Any simple way dates and clip splits can be preserved?

    THE PROBLEM
    Tapes are one of the riskiest ways to archive footage as not only is there the possibility of tape damage but the very real chance that the camera will fail after a few years leaving you with unplayable footage .. .. .. .. unless you are lucky enough to find a replacement one or are prepared to spend money on obsolete equipment.
    A further disadvantage is the linear nature of tape which takes ages to import or spool through.
    THE SOLUTION
    Digital storage on hard drives, memory sticks or SD cards has none of these problems and your video can be played anywhere on any computer etc.
    Furthermore after converting to H.264, the video is virtually identical in quality and only takes up 35% of the space (using FCP X's convert to H.264 default setting).
    THE SNAGS
    I intend to import all my HDV tapes, stick each one on the FCP X timeline and export it as mentioned above.
    This will reduce my HDV file size to around 4GB which would also fit conveniently on one DVD, as well as the above mentioned storage devices.
    The only problem I can see is that I wll lose the date/time and also the clip-breaks.
    The precise date/time is not a serious problem but I would like to preserve clip breaks if possible, even though the inability to do so would not be too serious.
    THE HELP?
    So have there been any recent developments that would help me with either of these problems cheaply and quickly.
    P.S.  I know that I could burn the date/time on the first frame of every clip but that would take an eternity. I could also export every clip singly to H.264 but that too would take an age.

    Thanks for the reply, however, unless I am missing something there would be no advantage over simply retaining the original imported HDV files and avoiding the additional time taken to create the archive?
    The H.264 route preserves the quality whilst dramatically reducing the file size and will probably be a more universally accepted format than HDV.
    Luckily I can live without the metadata and timecode but it would be nice to be able to preserve it.
    Naturally I have written details but as they are not integral with the video, there is always the strong possibility of them being lost after my demise.
    I intend to keep the HDV tapes and camera of course, but I don't know how long the camera (even when unused) will survive.
    My original Canon Video 8 camcorder, bought in 1992 packed in after 8 years leaving me with 25 unplayable tapes until last year, when by a minor miracle I was able to borrow a Video 8 tape deck.
    Similarly, my first mini-DV camera purchased in 2000, packed in recently but luckily I have another DV camera together with my HDV one which can still play them.
    From the research I have done it seem quite general that many cameras, even when little used, bite the dust after a decade, probably due to electronic deterioration/malfunction. They work perfectly but the next time you use them the transport mechanism refuses to function  even though there is obviously no mechanical wear.

  • Any way to specify options for scheduled filesystem checks?

    Today I ran e2fsck -fD on my netbook's ext4 partitions, and was surprised to see the machine's cumulative boot and login time drop by about ten seconds. Evidently the "rarely necessary" nature of the -D option doesn't mean it shouldn't be done once in a while.
    So I'm wondering if there's a way to make e2fscks scheduled by tune2fs use -D. Is it possible to specify the parameters through tune2fs, or some other way? The man page doesn't say; nor does there appear to be anything on it for e2fsck.conf.
    Last edited by Gullible Jones (2012-08-06 02:43:28)

    This should be possible via the configuration file e2fsck.conf (/etc/e2fsck.conf) - it has an own man page. If you want to change options for your root system I guess you have to create such a config file in your initramfs.
    An alternative would be to boot from a live cd.
    Greetings
    matse

  • Is there any simple way I can find out whether my router or my mac air is responsible for dropping internet connection constantly?  Often when I do the network diagnostic, the wifi light is green, but isp internet and server are either amber or red.

    This is driving me crazy.  The router (it came with the apartment) is a Fritz!Box fon Wlan 7240.  I would be willing to buy an new airport if that would fix it.  But in this country (Germany) you probably can't give things back. 

    This is not an alternative to Susan Howard's diagnostic questions, only an atempt to collect more data about your situation.
    Do you have the instruction manual for your router? I ask because at some point it might be a good idea to reset the router. Turning it off for about 15 seconds then turning it back on helps sometimes. The more basic procedure (this is with my router) is to push the reset. But that would mean you have to re-configure the router with password etc. from scratch.

  • Does Apple have any good way of managing iPhones for business?

    I finally broke down and allowed iPhones into our company when Apple introduced the ability to provision phones like phones (e.g. don't have to teather them to a computer to set up).  This and the "business" management tools opened the door, so we got about 30 of them.
    WHAT A HUGE MISTAKE!!!!
    Apple is now going backward.  When a phone comes into our shop, we have to load up iTunes and get the phone to sync before we can do simple things like wipe the phone or troubleshoot "why did my bluetooth quit working".  All of their "enterprise focus" seems to be around security and app control, with nothing I've seen for the day-to-day keeping things running.  (Not saying app control and secuirty are unimportant, just not enough).
    Does Apple have any good business management tools that I'm missing?  I know about MDM, but too much setup for a relatively small number of phones.  Besides, my understanding is the MDM only does app management / security policy.  Right now we use Apple's stand-alone configurator.  Fine for pushing policy and apps, but useless for troubleshooting and day-to-day management (like resetting a phone back to factory configs).
    Also, is my carrior correct that Apple will not allow them to replace phones that have gone bad under warranty?  They told me for the iPhones we have to physically take them to an Apple store for troubleshooting / replacement even after 100% identifying the issue!  That is an hour (at least) wasted to send one of my folks to the store.  I know we don't just have a bad carrior, becaue they happily send out replacement on other brands after troubleshooting over the phone.
    I actually do like the overall look/feel of the iPhones.  But unless Apple becomes much more corporate-friendly, I can only recommend that companies refuse to purchase any iDevice.  BYOD, sure...but when you buy tens or hundreds of phones stick to Android, Blackberry, or even (sorry) Microsoft based devices.

    Does not seem to work that way for us.  We plug the phone in, and the first thing iTunes does is say the phone needs to be "authorized for this computer".  It also states that the phone can only be authorized for x computers.
    It then goes through it's jig while we wait, and finally comes up with the phone.  Only then can we try to wipe / update the phone.  We do stop the sync process, that automatically starts wanting to run.  Maybe has to do with a version difference between what you use and what we use.  I did notice that an older version of iTunes seemed a bit friendlier, but would not support our iPads.
    However, when we were troubleshooting the bug where wireless / bluetooth quits working it was quite a bit more difficult than this for a phone a user handed us.  Troubleshooting steps required that the phone be "restored" in iTunes.  However, iTunes insisted on our providing a password that neither we nor the user knew.  Maybe just learning curve, but it took about an hour before we were able to get that phone to a point where we could reset it.
    Here is a sincere question for you, since you say you support a fleet of phones.  Do you really NOT get annoyed when your tech has to take a iPhone to a computer with iTunes, plug it in, and work from there whenever there is a user issue that needs to have the phone wiped back to factory standard?  This compared to being able to punch a few buttons on a different phone, right there in the users office, then hand it back to the user and say "your are fixed".
    My only assumptions are that IT staff want to solve issues as quickly and efficiently as possible.  Requireing a tech to deal with iTunes for simple procedures is not, IMHO, "as quick and efficient as possible".

  • Is there any simple way to run same sql script on multiple remote sql server databases at once?

    i am using sql server 2005. our company has many branches. each branch is located in different country. so when i update database in any country over the VPN connection then i need to update db in another country one by one over the vpn connection. it
    is very tire some job....so i was think that there could be any easy trick to update multiple db in different country easily. so am developing a store procedure which will connect each DB in different database one after one over the vpn and read script from
    sql file and execute the script in remote db over vpn. so please have look at my script and tell me how to do it. please do not advise me to use any 3rd party.
    here is a table structure where i will put all my remote db details.
    CREATE TABLE [dbo].[DBDetails]
    [ServerName] [varchar](max)     NULL,
    [DBName] [varchar](max)         NULL,
    [UserID] [varchar](max)         NULL,
    [Password] [varchar](max)       NULL,
    [CountryCode] [varchar](2)      NULL
    SET NOCOUNT ON
    DECLARE DB CURSOR FOR SELECT ServerName,DBName,UserID,Password,CountryCode FROM    DBDetails
    OPEN DB
    DECLARE @ServerName     varchar(MAX)
    DECLARE @DBName         varchar(MAX)
    DECLARE @UserID         varchar(MAX)
    DECLARE @Password       varchar(MAX)
    DECLARE @CountryCode    varchar(2)
    FETCH NEXT FROM DB INTO @ServerName,@DBName,@UserID,@Password,@CountryCode
    WHILE @@FETCH_STATUS = 0
    BEGIN
    -- here i need some help for opening db connection and read sql file and execute  the statement
    -- Please help here
    FETCH NEXT FROM DB INTO @ServerName,@DBName,@UserID,@Password,@CountryCode
     END
     CLOSE DB
     DEALLOCATE DB
    thanks

    One way: set them as jobs and assign the same schedule or start them from a stored procedure:
    http://www.sqlusa.com/bestpractices2005/startjobfromstoredproc/
    Note: when you start a job from a stored procedure, control proceeds to the next statement, there is no wait for the job to finish.
    Kalman Toth SQL SERVER 2012 & BI TRAINING
    New Book: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2012

Maybe you are looking for