product icon

How to set the log level in LastPass Universal Proxy v5.x?

    The default log level in Universal Proxy is INFO. With the following command you can specify what level of logging you require.

    About this task:
    Note: Requirements:
    Operating System Installer
    Windows Docker Desktop
    Mac Docker Desktop
    Linux Docker Engine
    Note: This feature requires an account with the LastPass Business + Advanced MFA add-on. How do I upgrade my LastPass Business account with an add-on?
    We provide the following options for logging information:
    • INFO level for informational messages that highlight the progress of the application at coarse-grained level, and
    • DEBUG level for fine-grained informational events.

    Set INFO log level

    1. Open a terminal window based on your OS:
      Operating System Instructions
      Windows Open Command Prompt as an administrator.
      Linux CLI The terminal window is used by default.
      Linux with graphical user interface Open the Terminal app.
      MAC Open the Terminal app.
    2. Execute the following command:
      docker run -v <nameofthevolume>:/usr/local/universalproxy/volume -it --rm <dockerimagerepository>:<dockerimagetag> -logLevel info

      Command example

      docker run -v universalproxy:/usr/local/universalproxy/volume -it --rm lastpass/universalproxy:5.0.0 -logLevel info

    Set DEBUG log level

    1. Open a terminal window based on your OS:
      Operating System Instructions
      Windows Open Command Prompt as an administrator.
      Linux CLI The terminal window is used by default.
      Linux with graphical user interface Open the Terminal app.
      MAC Open the Terminal app.
    2. Execute the following command:
      docker run -v <nameofthevolume>:/usr/local/universalproxy/volume -it --rm <dockerimagerepository>:<dockerimagetag> -logLevel debug

      Command example

      docker run -v universalproxy:/usr/local/universalproxy/volume -it --rm lastpass/universalproxy:5.0.0 -logLevel debug