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

  • Home
  • SEARCH
  • 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 8885553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:20:13+00:00 2026-06-14T21:20:13+00:00

I am attempting to write to a log. As per the below: java.util.logging.Logger logger

  • 0

I am attempting to write to a log. As per the below:

java.util.logging.Logger logger = com.sun.identity.log.Logger.getLogger("name");

I then do:

public void info(SSOToken token, String message) {
    if (this.logger != null) {
        java.util.logging.LogRecord value = null;
        if (token == null) {
            value = new LogRecord(Level.INFO, message);
        }
        else {
            value = new LogRecord(Level.INFO, message, token);
        }

        logger.log(value);
    }
}

But am getting an exception:

com.sun.identity.log.AMLogException: MagentoIdRepo:Log write authorization failure
    at com.sun.identity.log.Logger.validateLogBy(Logger.java:291)
    at com.sun.identity.log.Logger.log(Logger.java:363)
    at com.sun.identity.log.Logger.log(Logger.java:340)
    at com.sun.identity.log.Logger.log(Logger.java:270)

Any idea how i’d find out what user needs to be authed to log and how i’d auth them? as i presume thats what i need to do to fix the above.

Cheers.

  • 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-14T21:20:15+00:00Added an answer on June 14, 2026 at 9:20 pm

    If you just want to do some debug logging you may use ‘com.sun.identity.shared.debug.Debug’ …

    private static Debug debug; 
    debug = Debug.getInstance("someName");
    if (debug.messageEnabled()) {
      debug.message(....);
    }
    
    if (debug.warningEnabled()) {
      debug.warning(...);
    }
    

    etc

    If you really need the logger you started with special permissions have to be assinged to the identity which is related to the ‘SSOToken’

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

Sidebar

Related Questions

i'm attempting to write the result of the $x = [System.Net.Dns]::GetHostAddresses($name) statement into my
I am attempting to write a Perl script that parses a log where on
I'm attempting to write a bash script to parse out the following log file
I'm attempting to write a script for myself that will log in to a
I'm attempting to set up basic logging to the windows event log in .net
I am curretnly attempting to write a script in python that allows me to
I am attempting to write an Android app which will allow me to read
I am attempting to write a method that has an optional EventHandler Paramater. it
I'm attempting to write a shader to put a border around text. It compiles
I have been attempting to write a VBA Script that can parse out other

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.