Home / CSE MCQs / Log4j ::

CSE MCQs :: Log4j

  1. Which of the following method of logger print a log message in info mode?
  2. A.
    public void debug(Object message)
    B.
    public void error(Object message)
    C.
    public void fatal(Object message)
    D.
    public void info(Object message)

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Mention what are the different types of Appenders?
  4. A.
    ConsoleAppender logs to standard output
    B.
    FileAppender prints logs to some file
    C.
    Rolling file appender to a file with maximum size
    D.
    All of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following genres does Log4j produce?
  6. A.
    Gospel music
    B.
    Avant-rock
    C.
    Logging Tool
    D.
    Action game

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Mention what are the three principal components of Log4j?
  8. A.
    Loggers
    B.
    Appenders
    C.
    Layout
    D.
    All of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Who developed Log4j?
  10. A.
    Mozilla Foundation
    B.
    Apache Software Foundation
    C.
    Sony Creative Software
    D.
    Blender Foundation

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Mention what are the other support objects in Log4j?
  12. A.
    Level Object
    B.
    Filter Object
    C.
    Object Renderer
    D.
    All of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following platforms does Log4j run on?
  14. A.
    Debian
    B.
    Windows Server 2008
    C.
    Cross-platform
    D.
    Normal-platform

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Inside logger component what are the different log levels?
  16. A.
    All
    B.
    Debug
    C.
    Info
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The Appender object is responsible for publishing logging information to various preferred destinations such as a database, file, console, UNIX Syslog, etc.
  18. A.
    false
    B.
    true
    C.
    Both of these
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. What are the format characters used in log4j?
  20. A.
    L- it is used to output the line number from where the logging request was processed or issued
    B.
    m- It is used to output the application supplied message related to the logging event
    C.
    P- It is used to output the priority of the logging event
    D.
    All

    View Answer

    Workspace

    Discuss Discuss in Forum