Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Cloud Logging Client Libraries with Native Image

This application uses the Google Cloud Logging Client Libraries and can be compiled with Native Image Native Image.

Setup Instructions

  1. Follow the GCP Project Authentication and Native Image Setup Instructions.

  2. Enable the Logging APIs.

Run with Native Image Compilation

Navigate to this directory in a new terminal.

  1. Compile the application using the Native Image Compiler. This step may take a few minutes.

    mvn package -P native
    
  2. Run the application:

    ./target/logging-sample
    
  3. The application will log a message to your local terminal and to Google Cloud Console.

    Navigate to the Cloud Console Logs Viewer to view you logs and find the newly generated log entry in Cloud Console:

    This is a log produced by Native Image.