Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8996687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:47:17+00:00 2026-06-15T23:47:17+00:00

Can anybody explain what Log means in vb.net code? Is it the Logarithm function

  • 0

Can anybody explain what Log means in vb.net code? Is it the Logarithm function or some other log event. I did some search on this and I understood that this was for the Logarithm part. However, I do not understand the below line of code if I apply Logarithm to it.

tmp=pBuffer(5)+4
Log("tmp:" & tmp)

Can anyone explain this line of code and what is the equivalent java for the same?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:47:18+00:00Added an answer on June 15, 2026 at 11:47 pm

    That line of code looks to be logging an event to a log file (or console) rather than the Logarithm mathematical operation.

    There are many ways to do logging in Java, but the simplest (though not the nicest) is to do the following:

    import java.util.logging.Logger;
    
    public class Example {
    
        private static final Logger log = Logger.getLogger(Example.class.getName());
    
        static void doStuff(int[] pBuffer) {
            int tmp = pBuffer[5] + 4;
            log.info("tmp:" + tmp);
        }
    
        public static void main(String[] args) {
            doStuff(new int[] {0, 1, 2, 3, 4, 5});
        }
    }
    

    I’ve translated your example code verbatim as the function doStuff. If you run it, you’ll get something like the following printed to the console:

    12 17, 2012 4:47:01 PM Example doStuff
    INFO: tmp:9
    

    This code uses Java’s built-in logging facility, which I have not used. If you need sophisticated logging functionality, I recommend SLF4J or log4j.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anybody explain what this error means: The .Net Framing mode being used is
can anybody explain why this is? here my code: <script> $(document).ready(function() { refresh(); });
Can anybody explain what does JdClient is in this code: public JdClient client =
Can anybody explain me this piece of code? /* Pad to size of `struct
Can Anybody explain why this happen? This is my code in a plugin called
Can anybody explain how this function works? public int TestAdd(int a,int b) { if(a
Can anybody explain why the retain count of this line of code: [[[SomeClass alloc]
Can anybody explain me this piece of assembly code? LINEAR_DATA_SEL equ $-gdt dw 0FFFFh
please can anybody explain me what this function do?i am confused bool isOnlyLeftHand(string w)
Can anybody explain me the following code. I did not understand what % does.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.