Skip to content

Commit

Permalink
Updates to pod.
Browse files Browse the repository at this point in the history
  • Loading branch information
kablamo committed Apr 28, 2012
1 parent bcdf688 commit 4649255
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions README.pod
Expand Up @@ -30,26 +30,22 @@ be easily revived.

=head1 ATTRIBUTES

=head2 file

The name of the file to log data to

=head2 date

Adds an __date field to your json. The '__' part ensures the date is the first
information logged to each line when the keys are sorted.

=head2 file

The name of the file to log data to

=head2 remove_newlines

This boolean is set to true by default. It means your jason data structures
will be logged entirely on one line.

=head1 METHODS

=head2 new(%attributes)

Returns a Log::JSON object.

=head2 log(%hash)

Appends %hash to a file as JSON. The keys are sorted when the hash is converted to JSON.
Expand All @@ -58,15 +54,15 @@ Appends %hash to a file as JSON. The keys are sorted when the hash is converted

This should probably should have been a Log::Dispatch plugin.

=head1 SEE ALSO

L<Log::Message::Structured>, L<Log::Structured>, L<Log::Sprintf>

=head1 THANKS

Thanks to Foxtons Ltd for providing the opportunity to write and release the
original version of this module.

=head1 SEE ALSO

L<Log::Message::Structured>, L<Log::Structured>, L<Log::Sprintf>

=head1 AUTHOR

Eric Johnson <cpan at iijo dot org>
Expand Down

0 comments on commit 4649255

Please sign in to comment.