Fyipe Application

A fyipe JS package that send logs from your applications to your fyipe dashboard.

License

License

Categories

Categories

Java Languages
GroupId

GroupId

io.hackerbay.fyipe
ArtifactId

ArtifactId

log-java
Last Version

Last Version

3.0.6657
Release Date

Release Date

Type

Type

jar
Description

Description

Fyipe Application
A fyipe JS package that send logs from your applications to your fyipe dashboard.
Project URL

Project URL

https://www.fyipe.com/
Source Code Management

Source Code Management

http://github.com/Fyipe/log-java

Download log-java

How to add to project

<!-- https://jarcasting.com/artifacts/io.hackerbay.fyipe/log-java/ -->
<dependency>
    <groupId>io.hackerbay.fyipe</groupId>
    <artifactId>log-java</artifactId>
    <version>3.0.6657</version>
</dependency>
// https://jarcasting.com/artifacts/io.hackerbay.fyipe/log-java/
implementation 'io.hackerbay.fyipe:log-java:3.0.6657'
// https://jarcasting.com/artifacts/io.hackerbay.fyipe/log-java/
implementation ("io.hackerbay.fyipe:log-java:3.0.6657")
'io.hackerbay.fyipe:log-java:jar:3.0.6657'
<dependency org="io.hackerbay.fyipe" name="log-java" rev="3.0.6657">
  <artifact name="log-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.hackerbay.fyipe', module='log-java', version='3.0.6657')
)
libraryDependencies += "io.hackerbay.fyipe" % "log-java" % "3.0.6657"
[io.hackerbay.fyipe/log-java "3.0.6657"]

Dependencies

compile (2)

Group / Artifact Type Version
com.google.code.gson : gson jar 2.8.6
junit : junit jar 4.13

Project Modules

There are no modules declared in this project.

maven

Fyipe Application Logger

A fyipe application logger that can be used to send logs about your applications created on your fypie dashboard

Installation

Maven Install

You can install to use in your project by adding the following to your pom.xml file:

<dependency>
    <groupId>io.hackerbay.fyipe</groupId>
    <artifactId>java-sdk</artifactId>
    <version>CURRENT_VERSION</version>
</dependency>

Others

Check Maven Central Repository for other modes of installation.

Basic Usage

import com.google.gson.JsonObject;
import io.hackerbay.fyipe.FyipeLogger;

public class SampleClass {

    // constructor
    FyipeLogger logger = new FyipeLogger(
        "API_URL", // https://fyipe.com/api
        "APPLICATION_LOG_ID",
        "APPLICATION_LOG_KEY"
    );

    // Logging a string information
    public void logStringInformation() {
        String content = "Content to be logged";
        JsonObject response = logger.log(content); // returns a JsonObject of response
        System.out.println(response);
    }

    // Logging any object of a class
    public void logACustomClassInformation(CustomClass customClass) {
        String content = new Gson().toJson(customClass); // converts your custom class to a json object
        JsonObject response = logger.log(content); // returns a JsonObject of response
        System.out.println(response);
    }

    // Logging a string with a series of tags
    public void logStringInformation() {
        String content = "Content to be logged";
        String [] tags = { "server", "monitoring", "logs" };
        JsonObject response = logger.log(content, tags); // returns a JsonObject of response
        System.out.println(response);
    }
}

API Documentation

Main API to send logs to the server.

Author: HackerBay, Inc.

new FyipeLogger(apiUrl, applicationId, applicationKey)

Create a constructor from the class, which will be used to send logs to the server.

Kind: Constructor Returns: null

Param Type Description
apiUrl String The Server URL.
applicationId String The Application Log ID.
applicationKey String The Application Log Key.

logger.log(log, tags)

Logs a request of type info to the server.

Kind: method of new FyipeLogger Returns: JsonObject - A response of a success or failure.

Param Type Description
log String The content to the logged on the server.
tags String[] The tag(s) to be attached to the logged item on the server.

logger.warning(warning, tags)

Logs a request of type warning to the server.

Kind: method of new FyipeLogger Returns: JsonObject - A response of a success or failure.

Param Type Description
warning String The content to the logged on the server.
tags String[] The tag(s) to be attached to the logged item on the server.

logger.error(error, tags)

Logs a request of type error to the server.

Kind: method of new FyipeLogger Returns: JsonObject - A response of a success or failure.

Param Type Description
error String The content to the logged on the server.
tags String[] The tag(s) to be attached to the logged item on the server.

Contribution

  • Clone repository
  • run mvn clean install to install dependencies
  • run mvn test to run tests
  • run mvn package to build for production.
io.hackerbay.fyipe

Fyipe

Status Page, On Call, and Monitoring made simple.

Versions

Version
3.0.6657
3.0.6630
3.0.6563
3.0.6559
3.0.6483
3.0.6457
3.0.6051
3.0.6047
3.0.6010
3.0.5973
3.0.5972
3.0.5971
3.0.5949
3.0.5928
3.0.5910
3.0.5882
3.0.5835
3.0.5762
3.0.5726
3.0.5708
3.0.5678
3.0.5674
3.0.5632
3.0.5630
3.0.5628
3.0.5618
3.0.5608
3.0.5588
3.0.5579
3.0.5571
3.0.5569
3.0.5568
3.0.5480
3.0.5360
3.0.4427
3.0.4423
3.0.4422
3.0.4291
3.0.4040
3.0.4032
1.0.0