Hide API requests (YahooFinance) in Java Visual Studio Code debugger





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I have trouble to remove the orange java API requests in the debugger terminal. I want to hide these. How do I do this? (see picture)



I am using Visual Studio Code with maven.



Printscreen



My code snippet:



        try {


Calendar from = Calendar.getInstance();
Calendar to = Calendar.getInstance();
from.add(Calendar.YEAR, -1); // from 1 year ago 
Stock stock = YahooFinance.get("GOOG");
List<HistoricalQuote> stockHistQuotes = stock.getHistory(from, to, Interval.DAILY);

}

catch(Exception e) {}


Output:



Hello World!
358 [main] INFO yahoofinance.quotes.query1v7.QuotesRequest - Sending request: https://query1.finance.yahoo.com/v7/finance/quote?symbols=GOOG
3687 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Sending request: https://query1.finance.yahoo.com/v7/finance/download/GOOG?period1=1510830000&period2=1542366000&interval=1d&crumb=FlUQht4hFF9
3756 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-16,1022.520020,1035.920044,1022.520020,1032.500000,1032.500000,1129700
3758 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-17,1034.010010,1034.420044,1017.750000,1019.090027,1019.090027,1397100
3758 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-20,1020.260010,1022.609985,1017.500000,1018.380005,1018.380005,953500


Everything but Hello World should be removed.










share|improve this question

























  • Please add a sample of the output into the question, not as a picture.

    – Dragonthoughts
    Nov 16 '18 at 14:19











  • What logging library are you using? Check the documentation for your library to see how to change logging level for specific classes/packages. For example, in log4j, you could set a logger in your config file to only log ERROR and worse for yahoofinance.

    – Jason Armstrong
    Nov 16 '18 at 15:46











  • I am using: <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.6.4</version> </dependency>

    – gynther
    Nov 16 '18 at 16:20




















1















I have trouble to remove the orange java API requests in the debugger terminal. I want to hide these. How do I do this? (see picture)



I am using Visual Studio Code with maven.



Printscreen



My code snippet:



        try {


Calendar from = Calendar.getInstance();
Calendar to = Calendar.getInstance();
from.add(Calendar.YEAR, -1); // from 1 year ago 
Stock stock = YahooFinance.get("GOOG");
List<HistoricalQuote> stockHistQuotes = stock.getHistory(from, to, Interval.DAILY);

}

catch(Exception e) {}


Output:



Hello World!
358 [main] INFO yahoofinance.quotes.query1v7.QuotesRequest - Sending request: https://query1.finance.yahoo.com/v7/finance/quote?symbols=GOOG
3687 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Sending request: https://query1.finance.yahoo.com/v7/finance/download/GOOG?period1=1510830000&period2=1542366000&interval=1d&crumb=FlUQht4hFF9
3756 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-16,1022.520020,1035.920044,1022.520020,1032.500000,1032.500000,1129700
3758 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-17,1034.010010,1034.420044,1017.750000,1019.090027,1019.090027,1397100
3758 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-20,1020.260010,1022.609985,1017.500000,1018.380005,1018.380005,953500


Everything but Hello World should be removed.










share|improve this question

























  • Please add a sample of the output into the question, not as a picture.

    – Dragonthoughts
    Nov 16 '18 at 14:19











  • What logging library are you using? Check the documentation for your library to see how to change logging level for specific classes/packages. For example, in log4j, you could set a logger in your config file to only log ERROR and worse for yahoofinance.

    – Jason Armstrong
    Nov 16 '18 at 15:46











  • I am using: <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.6.4</version> </dependency>

    – gynther
    Nov 16 '18 at 16:20
















1












1








1








I have trouble to remove the orange java API requests in the debugger terminal. I want to hide these. How do I do this? (see picture)



I am using Visual Studio Code with maven.



Printscreen



My code snippet:



        try {


Calendar from = Calendar.getInstance();
Calendar to = Calendar.getInstance();
from.add(Calendar.YEAR, -1); // from 1 year ago 
Stock stock = YahooFinance.get("GOOG");
List<HistoricalQuote> stockHistQuotes = stock.getHistory(from, to, Interval.DAILY);

}

catch(Exception e) {}


Output:



Hello World!
358 [main] INFO yahoofinance.quotes.query1v7.QuotesRequest - Sending request: https://query1.finance.yahoo.com/v7/finance/quote?symbols=GOOG
3687 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Sending request: https://query1.finance.yahoo.com/v7/finance/download/GOOG?period1=1510830000&period2=1542366000&interval=1d&crumb=FlUQht4hFF9
3756 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-16,1022.520020,1035.920044,1022.520020,1032.500000,1032.500000,1129700
3758 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-17,1034.010010,1034.420044,1017.750000,1019.090027,1019.090027,1397100
3758 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-20,1020.260010,1022.609985,1017.500000,1018.380005,1018.380005,953500


Everything but Hello World should be removed.










share|improve this question
















I have trouble to remove the orange java API requests in the debugger terminal. I want to hide these. How do I do this? (see picture)



I am using Visual Studio Code with maven.



Printscreen



My code snippet:



        try {


Calendar from = Calendar.getInstance();
Calendar to = Calendar.getInstance();
from.add(Calendar.YEAR, -1); // from 1 year ago 
Stock stock = YahooFinance.get("GOOG");
List<HistoricalQuote> stockHistQuotes = stock.getHistory(from, to, Interval.DAILY);

}

catch(Exception e) {}


Output:



Hello World!
358 [main] INFO yahoofinance.quotes.query1v7.QuotesRequest - Sending request: https://query1.finance.yahoo.com/v7/finance/quote?symbols=GOOG
3687 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Sending request: https://query1.finance.yahoo.com/v7/finance/download/GOOG?period1=1510830000&period2=1542366000&interval=1d&crumb=FlUQht4hFF9
3756 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-16,1022.520020,1035.920044,1022.520020,1032.500000,1032.500000,1129700
3758 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-17,1034.010010,1034.420044,1017.750000,1019.090027,1019.090027,1397100
3758 [main] INFO yahoofinance.histquotes2.HistQuotes2Request - Parsing CSV line: 2017-11-20,1020.260010,1022.609985,1017.500000,1018.380005,1018.380005,953500


Everything but Hello World should be removed.







java visual-studio maven debugging






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 15:54







gynther

















asked Nov 16 '18 at 14:17









gynthergynther

134




134













  • Please add a sample of the output into the question, not as a picture.

    – Dragonthoughts
    Nov 16 '18 at 14:19











  • What logging library are you using? Check the documentation for your library to see how to change logging level for specific classes/packages. For example, in log4j, you could set a logger in your config file to only log ERROR and worse for yahoofinance.

    – Jason Armstrong
    Nov 16 '18 at 15:46











  • I am using: <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.6.4</version> </dependency>

    – gynther
    Nov 16 '18 at 16:20





















  • Please add a sample of the output into the question, not as a picture.

    – Dragonthoughts
    Nov 16 '18 at 14:19











  • What logging library are you using? Check the documentation for your library to see how to change logging level for specific classes/packages. For example, in log4j, you could set a logger in your config file to only log ERROR and worse for yahoofinance.

    – Jason Armstrong
    Nov 16 '18 at 15:46











  • I am using: <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.6.4</version> </dependency>

    – gynther
    Nov 16 '18 at 16:20



















Please add a sample of the output into the question, not as a picture.

– Dragonthoughts
Nov 16 '18 at 14:19





Please add a sample of the output into the question, not as a picture.

– Dragonthoughts
Nov 16 '18 at 14:19













What logging library are you using? Check the documentation for your library to see how to change logging level for specific classes/packages. For example, in log4j, you could set a logger in your config file to only log ERROR and worse for yahoofinance.

– Jason Armstrong
Nov 16 '18 at 15:46





What logging library are you using? Check the documentation for your library to see how to change logging level for specific classes/packages. For example, in log4j, you could set a logger in your config file to only log ERROR and worse for yahoofinance.

– Jason Armstrong
Nov 16 '18 at 15:46













I am using: <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.6.4</version> </dependency>

– gynther
Nov 16 '18 at 16:20







I am using: <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.6.4</version> </dependency>

– gynther
Nov 16 '18 at 16:20














1 Answer
1






active

oldest

votes


















0














Thank you I solved it with using this line of code:



Configurator.setRootLevel(Level.FATAL);


And changed my dependencies in maven to:



 <exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.11.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.11.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>2.11.1</version>
</dependency>





share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53339604%2fhide-api-requests-yahoofinance-in-java-visual-studio-code-debugger%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Thank you I solved it with using this line of code:



    Configurator.setRootLevel(Level.FATAL);


    And changed my dependencies in maven to:



     <exclusions>
    <exclusion>
    <groupId>log4j</groupId>
    <artifactId>log4j</artifactId>
    </exclusion>
    <exclusion>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    </exclusion>
    </exclusions>
    <dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-core</artifactId>
    <version>2.11.1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-slf4j-impl</artifactId>
    <version>2.11.1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-1.2-api</artifactId>
    <version>2.11.1</version>
    </dependency>





    share|improve this answer




























      0














      Thank you I solved it with using this line of code:



      Configurator.setRootLevel(Level.FATAL);


      And changed my dependencies in maven to:



       <exclusions>
      <exclusion>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      </exclusion>
      <exclusion>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      </exclusion>
      </exclusions>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <version>2.11.1</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
      <version>2.11.1</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-1.2-api</artifactId>
      <version>2.11.1</version>
      </dependency>





      share|improve this answer


























        0












        0








        0







        Thank you I solved it with using this line of code:



        Configurator.setRootLevel(Level.FATAL);


        And changed my dependencies in maven to:



         <exclusions>
        <exclusion>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        </exclusion>
        <exclusion>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        </exclusion>
        </exclusions>
        <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-core</artifactId>
        <version>2.11.1</version>
        </dependency>
        <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-slf4j-impl</artifactId>
        <version>2.11.1</version>
        </dependency>
        <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-1.2-api</artifactId>
        <version>2.11.1</version>
        </dependency>





        share|improve this answer













        Thank you I solved it with using this line of code:



        Configurator.setRootLevel(Level.FATAL);


        And changed my dependencies in maven to:



         <exclusions>
        <exclusion>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        </exclusion>
        <exclusion>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        </exclusion>
        </exclusions>
        <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-core</artifactId>
        <version>2.11.1</version>
        </dependency>
        <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-slf4j-impl</artifactId>
        <version>2.11.1</version>
        </dependency>
        <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-1.2-api</artifactId>
        <version>2.11.1</version>
        </dependency>






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 16 '18 at 17:10









        gynthergynther

        134




        134
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53339604%2fhide-api-requests-yahoofinance-in-java-visual-studio-code-debugger%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Danny Elfman

            Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues